mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
adaptivedemux: check if element exists before setting it to null
Under certain error conditions it might happen that the element has been freed already and trying to set it to NULL causes an assertion
This commit is contained in:
parent
3dfab51b92
commit
c65aeedb6f
1 changed files with 2 additions and 1 deletions
|
@ -1061,6 +1061,7 @@ gst_adaptive_demux_stop_tasks (GstAdaptiveDemux * demux)
|
|||
GstAdaptiveDemuxStream *stream = iter->data;
|
||||
|
||||
gst_task_stop (stream->download_task);
|
||||
if (stream->src)
|
||||
gst_element_set_state (stream->src, GST_STATE_READY);
|
||||
g_mutex_lock (&stream->fragment_download_lock);
|
||||
stream->download_finished = TRUE;
|
||||
|
|
Loading…
Reference in a new issue