mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +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/6332>
This commit is contained in:
parent
3f9665eed2
commit
1c80cde250
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