From 8ce0a23a5e612a455a27c344f039103e7e0ae76f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 14 Nov 2022 09:37:28 +0100 Subject: [PATCH] decodebin3: Improve collection merging If the collections are the same, don't merge them Part-of: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c index 78fedd7003..3968929661 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -1624,7 +1624,9 @@ get_merged_collection (GstDecodebin3 * dbin) for (tmp = dbin->other_inputs; tmp; tmp = tmp->next) { DecodebinInput *input = (DecodebinInput *) tmp->data; - if (input->collection) { + GST_LOG_OBJECT (dbin, "Comparing res %p input->collection %p", res, + input->collection); + if (input->collection && input->collection != res) { if (res) { needs_merge = TRUE; break;