From fade0748d1afeafd26464598810db7131e947d4b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 6 Jun 2023 16:34:19 +0530 Subject: [PATCH] webrtcdsp: Map probe buffers with probe info, not dsp info The probe's info may not precisely match the dsp's info. For instance, the number of channels or their layout might be different. ``` GStreamer-Audio-CRITICAL **: 16:21:32.899: the GstAudioInfo argument is not equal to the GstAudioMeta's attached info ``` This broke in d5755744c3e2b70e9f04704ae9d18b928d9fa456. Part-of: --- subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp b/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp index c9a7cdae2f..87e5cbc4a2 100644 --- a/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp +++ b/subprojects/gst-plugins-bad/ext/webrtcdsp/gstwebrtcdsp.cpp @@ -404,7 +404,7 @@ gst_webrtc_dsp_analyze_reverse_stream (GstWebrtcDsp * self, goto done; } - gst_audio_buffer_map (&abuf, &self->info, buf, GST_MAP_READWRITE); + gst_audio_buffer_map (&abuf, &probe->info, buf, GST_MAP_READWRITE); if (probe->interleaved) { int16_t * const data = (int16_t * const) abuf.planes[0];