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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4849>
This commit is contained in:
parent
6ece5f3b90
commit
fade0748d1
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user