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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1083>
This commit is contained in:
parent
e39d57b374
commit
1f863e6d6d
@ -1302,6 +1302,8 @@ get_merged_collection (GstDecodebin3 * dbin)
|
|||||||
for (i = 0; i < nb_stream; i++) {
|
for (i = 0; i < nb_stream; i++) {
|
||||||
GstStream *stream =
|
GstStream *stream =
|
||||||
gst_stream_collection_get_stream (input->collection, i);
|
gst_stream_collection_get_stream (input->collection, i);
|
||||||
|
/* Only add if not already present in the list */
|
||||||
|
if (!g_list_find (unsorted_streams, stream))
|
||||||
unsorted_streams = g_list_append (unsorted_streams, stream);
|
unsorted_streams = g_list_append (unsorted_streams, stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user