mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
086ecb008f
commit
33fe063f50
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue