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 d5755744c3.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4849>
This commit is contained in:
Nirbheek Chauhan 2023-06-06 16:34:19 +05:30 committed by GStreamer Marge Bot
parent 6ece5f3b90
commit fade0748d1

View file

@ -404,7 +404,7 @@ gst_webrtc_dsp_analyze_reverse_stream (GstWebrtcDsp * self,
goto done; 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) { if (probe->interleaved) {
int16_t * const data = (int16_t * const) abuf.planes[0]; int16_t * const data = (int16_t * const) abuf.planes[0];