mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -1302,6 +1302,8 @@ get_merged_collection (GstDecodebin3 * dbin)
|
|||
for (i = 0; i < nb_stream; i++) {
|
||||
GstStream *stream =
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue