audioaggregator: Consider converting for equal audio formats
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 15 Mar 2021 14:33:47 +0000 (15:33 +0100)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 16 Mar 2021 12:46:56 +0000 (13:46 +0100)
commita379e0e5f1870b15c220207a86393d0fdf23874e
treeaac6396235e0e373c3f529d7fd13c51886825178
parent43449d9fb2707916ee8e4b1306c3cb786b056914
audioaggregator: Consider converting for equal audio formats

The converter might have a non-passthrough mix-matrix. The converter
can determine whether it should pass through, so let it, then remove it
if it's indeed a passthrough.

FIXME: Not converting when we need to but the config is invalid (e.g.
because the mix-matrix is not the right size) produces garbage. An
invalid config should cause a GST_FLOW_NOT_NEGOTIATED.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1070>
gst-libs/gst/audio/gstaudioaggregator.c