mssdemux: stop tasks faster
authorThiago Santos <thiago.sousa.santos@collabora.com>
Mon, 21 Jan 2013 21:05:59 +0000 (18:05 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 00:09:47 +0000 (21:09 -0300)
Issue a cancel to the downloaders so they stop earlier

ext/smoothstreaming/gstmssdemux.c

index 42c9b8d..e05ef53 100644 (file)
@@ -194,6 +194,7 @@ gst_mss_demux_stream_free (GstMssDemuxStream * stream)
       GST_DEBUG_OBJECT (stream->parent, "Leaving streaming task %s:%s",
           GST_DEBUG_PAD_NAME (stream->pad));
       gst_task_stop (stream->download_task);
+      gst_uri_downloader_cancel (stream->downloader);
       g_static_rec_mutex_lock (&stream->download_lock);
       g_static_rec_mutex_unlock (&stream->download_lock);
       GST_LOG_OBJECT (stream->parent, "Waiting for task to finish");