mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
adaptivedemux: make sure to free all "old streams"
As we release the MANIFEST_LOCK in stop_tasks, demux->priv->old_streams can be set, we need to free these otherwise we may end up trying to dispose elements in the READY state. https://bugzilla.gnome.org/show_bug.cgi?id=783256
This commit is contained in:
parent
b104fb203a
commit
c88125045f
1 changed files with 6 additions and 0 deletions
|
@ -810,6 +810,12 @@ gst_adaptive_demux_reset (GstAdaptiveDemux * demux)
|
|||
(GDestroyNotify) gst_adaptive_demux_stream_free);
|
||||
}
|
||||
|
||||
if (demux->priv->old_streams) {
|
||||
g_list_free_full (demux->priv->old_streams,
|
||||
(GDestroyNotify) gst_adaptive_demux_stream_free);
|
||||
demux->priv->old_streams = NULL;
|
||||
}
|
||||
|
||||
g_free (demux->manifest_uri);
|
||||
g_free (demux->manifest_base_uri);
|
||||
demux->manifest_uri = NULL;
|
||||
|
|
Loading…
Reference in a new issue