decodebin2: don't reverse stream topology order
authorMathieu Duponchelle <mathieu@centricular.com>
Sat, 22 Jan 2022 01:29:54 +0000 (02:29 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 Aug 2022 15:48:12 +0000 (15:48 +0000)
commit6bcfce750124da29c2ade85a4dd9fae704e6bcb8
tree81d2860d186aa3bb4fa82af68bbb7f612e77f35d
parent52f7150de4934136441b95791b92e843467acc31
decodebin2: don't reverse stream topology order

This can be important for instance when a container holds multiple
tracks with the same media type, with no indication (eg tags) of
which track is the default one.

In that case, players usually pick the first track by default.

This is especially useful when using smart editing with GES, as
it will result in the same ordering as the input file that was
used as a template.

For reference, this yields the same order as ffprobe.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1549>
subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c