summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2021-03-21 15:46:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-23 22:51:25 +0000
commitf0d268181e2a67ad2c50b5e77f921b34c1f32ba4 (patch)
tree1411105dd1c4801214a7cb9f96016ad39ac5c511 /meta/recipes-multimedia
parent902bf6550c5620f86460744bf27c46137f19a089 (diff)
downloadpoky-f0d268181e2a67ad2c50b5e77f921b34c1f32ba4.tar.gz
gstreamer1.0-plugins-good: fix rtpjitterbuffer regression
Due to an off-by-one when parsing the string, the most significant digit or the clock offset was skipped when parsing the offset. https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/910 (From OE-Core rev: ce51f42b87b154a5a12fb77fc9dd965ba59f2403) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-rtpjitterbuffer-Fix-parsing-of-the-mediaclk-direct-f.patch33
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.4.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-rtpjitterbuffer-Fix-parsing-of-the-mediaclk-direct-f.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-rtpjitterbuffer-Fix-parsing-of-the-mediaclk-direct-f.patch
new file mode 100644
index 0000000000..14a9fe23aa
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-rtpjitterbuffer-Fix-parsing-of-the-mediaclk-direct-f.patch
@@ -0,0 +1,33 @@
1From ec1949dffd931d0ec7e4f67108a08ab1e2af0cfe Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
3Date: Tue, 16 Mar 2021 19:25:36 +0200
4Subject: [PATCH] rtpjitterbuffer: Fix parsing of the mediaclk:direct= field
5
6Due to an off-by-one when parsing the string, the most significant digit
7or the clock offset was skipped when parsing the offset.
8
9Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/910>
10
11Upstream-Status: Backport [b5bb4ede3a42273fafc1054f9cf106ca527e3c26]
12
13Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
14---
15 gst/rtpmanager/gstrtpjitterbuffer.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c
19index 60d8ad875..02fe15adc 100644
20--- a/gst/rtpmanager/gstrtpjitterbuffer.c
21+++ b/gst/rtpmanager/gstrtpjitterbuffer.c
22@@ -1534,7 +1534,7 @@ gst_jitter_buffer_sink_parse_caps (GstRtpJitterBuffer * jitterbuffer,
23 GST_DEBUG_OBJECT (jitterbuffer, "Got media clock %s", mediaclk);
24
25 if (!g_str_has_prefix (mediaclk, "direct=") ||
26- !g_ascii_string_to_unsigned (&mediaclk[8], 10, 0, G_MAXUINT64,
27+ !g_ascii_string_to_unsigned (&mediaclk[7], 10, 0, G_MAXUINT64,
28 &clock_offset, NULL))
29 GST_FIXME_OBJECT (jitterbuffer, "Unsupported media clock");
30 if (strstr (mediaclk, "rate=") != NULL) {
31--
322.31.0
33
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.4.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.4.bb
index 9fdc31549f..07cacdc68a 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.4.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.18.4.bb
@@ -6,6 +6,7 @@ BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues
6 6
7SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ 7SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
8 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ 8 file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
9 file://0002-rtpjitterbuffer-Fix-parsing-of-the-mediaclk-direct-f.patch \
9 " 10 "
10 11
11SRC_URI[sha256sum] = "b6e50e3a9bbcd56ee6ec71c33aa8332cc9c926b0c1fae995aac8b3040ebe39b0" 12SRC_URI[sha256sum] = "b6e50e3a9bbcd56ee6ec71c33aa8332cc9c926b0c1fae995aac8b3040ebe39b0"