Commit b3a8c524 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle Committed by Edward Hervey

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
parent e76f0526
......@@ -809,6 +809,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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment