mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
parsebin: maintain original order when creating fallback stream collection
This commit is contained in:
parent
828cb0d86a
commit
43524d637c
1 changed files with 4 additions and 1 deletions
|
@ -3750,7 +3750,10 @@ build_fallback_collection (GstParseChain * chain,
|
|||
|
||||
if (!group)
|
||||
return;
|
||||
for (l = group->children; l; l = l->next) {
|
||||
|
||||
/* we used g_list_prepend when adding children, so iterate from last
|
||||
* to first to maintain the original order they were added in */
|
||||
for (l = g_list_last (group->children); l != NULL; l = l->prev) {
|
||||
GstParseChain *childchain = l->data;
|
||||
|
||||
build_fallback_collection (childchain, collection);
|
||||
|
|
Loading…
Reference in a new issue