avauddec: fix unnecessary reconfiguration if the audio layout isn't specified
authorTim-Philipp Müller <tim@centricular.com>
Thu, 29 Sep 2022 11:42:21 +0000 (12:42 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 1 Oct 2022 09:28:40 +0000 (09:28 +0000)
commit237b063843dd069ff79d2de890e10ea9c5abfccb
treeea65676448818203e891f55467649e329b65a36e
parentf8d8d67b8bc61fddd64ff648abd363d893a235a9
avauddec: fix unnecessary reconfiguration if the audio layout isn't specified

It would constantly want to renegotiate (and spam the debug log) even
though the channel layout hasn't actually changed. We use the same
fallback in gst_ffmpegauddec_negotiate() already.

This happens with WMA files for example.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3103>
subprojects/gst-libav/ext/libav/gstavauddec.c