mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
mssdemux: do not try to deinit the downloadrate while it is used
This can cause an assertion or deadlocks.
This commit is contained in:
parent
fe77ee47c9
commit
27b0086e4a
1 changed files with 1 additions and 2 deletions
|
@ -255,7 +255,6 @@ gst_mss_demux_stream_new (GstMssDemux * mssdemux,
|
|||
static void
|
||||
gst_mss_demux_stream_free (GstMssDemuxStream * stream)
|
||||
{
|
||||
gst_download_rate_deinit (&stream->download_rate);
|
||||
if (stream->download_task) {
|
||||
if (GST_TASK_STATE (stream->download_task) != GST_TASK_STOPPED) {
|
||||
GST_DEBUG_OBJECT (stream->parent, "Leaving streaming task %s:%s",
|
||||
|
@ -273,12 +272,12 @@ gst_mss_demux_stream_free (GstMssDemuxStream * stream)
|
|||
stream->download_task = NULL;
|
||||
}
|
||||
|
||||
gst_download_rate_deinit (&stream->download_rate);
|
||||
if (stream->pending_newsegment) {
|
||||
gst_event_unref (stream->pending_newsegment);
|
||||
stream->pending_newsegment = NULL;
|
||||
}
|
||||
|
||||
|
||||
if (stream->downloader != NULL) {
|
||||
g_object_unref (stream->downloader);
|
||||
stream->downloader = NULL;
|
||||
|
|
Loading…
Reference in a new issue