From 2bd682d3264a10ccd946414110b9cfc81e4ddc0c Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 25 Jun 2024 22:19:26 +1000 Subject: [PATCH] webrtcdsp: Enable multi_channel processing Enable multi_channel processing in webrtc-audio-processing when the input or output has multiple channels. Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3220 Part-of: --- subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp b/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp index dc4190cff0..18f808dfa6 100644 --- a/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp +++ b/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp @@ -628,6 +628,9 @@ gst_webrtc_dsp_setup (GstAudioFilter * filter, const GstAudioInfo * info) GST_WEBRTC_ECHO_PROBE_UNLOCK (self->probe); } + config.pipeline.multi_channel_render = (info->channels > 1); + config.pipeline.multi_channel_capture = (probe_info.channels > 1); + /* Setup Filters */ // TODO: expose pre_amplifier