decodebin3: Clear the global collection when resetting

This avoids having stray collections when re-using decodebin3

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6270>
This commit is contained in:
Edward Hervey 2024-03-01 17:37:30 +01:00 committed by GStreamer Marge Bot
parent 086ecb008f
commit 33fe063f50

View file

@ -679,6 +679,10 @@ gst_decodebin3_reset (GstDecodebin3 * dbin)
dbin->current_mq_min_interleave = dbin->default_mq_min_interleave;
dbin->upstream_selected = FALSE;
if (dbin->collection) {
gst_clear_object (&dbin->collection);
}
g_list_free_full (dbin->requested_selection, g_free);
dbin->requested_selection = NULL;