gstreamer1-plugins-bad-free/0002-webrtcdsp-Map-probe-buffers-with-probe-info-not-dsp-.patch
Wim Taymans 851eb29c89 Add patch to use new webrtc version
Resolves: RHEL-28928
2024-07-15 16:53:21 +02:00

37 lines
1.4 KiB
Diff

From 187eb3d4874ff6ceccf85bed3e8161f68f8e09da Mon Sep 17 00:00:00 2001
From: Nirbheek Chauhan <nirbheek@centricular.com>
Date: Tue, 6 Jun 2023 16:34:19 +0530
Subject: [PATCH 2/3] 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>
---
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];
--
2.45.2