mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
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:
parent
6ece5f3b90
commit
fade0748d1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue