encoding-profile: don't order profiles by stream ID ..
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 20 Jan 2022 23:57:16 +0000 (00:57 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 Aug 2022 15:48:12 +0000 (15:48 +0000)
commit62c303c2e0e6a27de17acca774bfd43aa4fc49f0
treebc1fae35dc8f1760305d02f540b345954dc170d0
parent0f85a46148bb8458bca21adb368cb6e104bf4ab2
encoding-profile: don't order profiles by stream ID ..

when creating a profile from a discoverer info.

There is no justification for the existing code, and talking with
Thibault he cannot remember why the sort was in place.

On the other hand, this allows GES users to not have to implement
a callback for the select-tracks-for-object callback when using
it to trim a single clip, which the output profile was built from:
track elements will be placed in the appropriate track by default,
that is the one that will be connected to the matching profile.

For multi-clip timelines, the situation doesn't change, users will
still have to implement a callback and do the leg work of placing
track elements (if any) in a matching track (if any).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1549>
subprojects/gst-plugins-base/gst-libs/gst/pbutils/encoding-profile.c