gstreamer/subprojects/gst-plugins-base/ext/opus
Sebastian Dröge 37f219bd57 opusdec: Try harder to negotiate the upstream channels/rate preferences
It might be possible to fulfill those but not with the first caps
structure. Instead of just fixating the first caps structure, check if
the preference can be fulfilled by any of the structures as the first
step.

Without this the following pipeline negotiates to mono after the
decoder because opusenc only has a single channel in its first caps
structure.

    gst-launch-1.0 audiotestsrc ! audio/x-raw,channels=2 ! opusenc \
        ! queue ! opusdec ! queue ! opusenc ! fakesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3689>
2023-01-05 17:59:41 +02:00
..
gstopus.c
gstopuscommon.c
gstopuscommon.h
gstopusdec.c opusdec: Try harder to negotiate the upstream channels/rate preferences 2023-01-05 17:59:41 +02:00
gstopusdec.h
gstopuselement.c
gstopuselements.h
gstopusenc.c Revert "opusenc: Reverse channel order in template caps" 2023-01-05 17:57:19 +02:00
gstopusenc.h
gstopusheader.c
gstopusheader.h
meson.build meson: Call pkgconfig.generate in the loop where we declare plugins dependencies 2022-09-01 21:17:35 +00:00