Commit 1f863e6d authored by Edward Hervey's avatar Edward Hervey Committed by GStreamer Marge Bot

decodebin3: Don't insert duplicated streams in collection

Filter out the ones which are already present. Can happen with several input
stream which have identical collections

Part-of: <>
parent e39d57b3
......@@ -1302,7 +1302,9 @@ get_merged_collection (GstDecodebin3 * dbin)
for (i = 0; i < nb_stream; i++) {
GstStream *stream =
gst_stream_collection_get_stream (input->collection, i);
unsorted_streams = g_list_append (unsorted_streams, stream);
/* Only add if not already present in the list */
if (!g_list_find (unsorted_streams, stream))
unsorted_streams = g_list_append (unsorted_streams, stream);
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