From b2688b8d3c66ce3c4baf0ad8cdc28e87f4854fbe Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 14 Dec 2006 12:14:25 +0000 Subject: [PATCH] Make safer. --- .../src/modules/playlistExecutor/src/GstreamerPlayer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx index 2eed3ea38..6a407c1cf 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx @@ -339,8 +339,6 @@ GstreamerPlayer :: open(const std::string fileUrl) m_preloadThread->join(); } - m_stopPreloader = false; - const bool isSmil = fileUrl.substr(fileUrl.size()-5, fileUrl.size()) == ".smil" ? true : false; const bool isPreloaded = (m_preloadUrl == fileUrl); @@ -367,7 +365,9 @@ GstreamerPlayer :: open(const std::string fileUrl) } else { debug() << "SMIL file detected." << endl; + m_stopPreloader = false; m_decoder = gst_element_factory_make("minimalaudiosmil", NULL); + gst_element_set(m_decoder, "abort", &m_stopPreloader, NULL); gst_element_link_many(m_filesrc, m_decoder, m_audioconvert, NULL); } if (gst_element_get_parent(m_audiosink) == NULL)