summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2022-02-26 20:44:25 +0300
committerSam James <sam@gentoo.org>2022-03-08 13:47:11 +0000
commitbf13b79a72bafe2d1bbd9da5f5887beb451806f0 (patch)
treec08d752c716d3d226aeb607ff506fff8e7736936 /media-plugins
parentmedia-libs/gst-plugins-good: Backport ldac payload fix to 1.20.0 (diff)
downloadgentoo-bf13b79a72bafe2d1bbd9da5f5887beb451806f0.tar.gz
gentoo-bf13b79a72bafe2d1bbd9da5f5887beb451806f0.tar.bz2
gentoo-bf13b79a72bafe2d1bbd9da5f5887beb451806f0.zip
media-plugins/gst-plugins-ldac: Backport ldac payloader fix to 1.20.0
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24183 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/gst-plugins-ldac/files/gst-plugins-ldac-1.20.0-ldac-payload-header.patch30
-rw-r--r--media-plugins/gst-plugins-ldac/gst-plugins-ldac-1.20.0.ebuild5
2 files changed, 35 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-ldac/files/gst-plugins-ldac-1.20.0-ldac-payload-header.patch b/media-plugins/gst-plugins-ldac/files/gst-plugins-ldac-1.20.0-ldac-payload-header.patch
new file mode 100644
index 000000000000..c6ea9f451159
--- /dev/null
+++ b/media-plugins/gst-plugins-ldac/files/gst-plugins-ldac-1.20.0-ldac-payload-header.patch
@@ -0,0 +1,30 @@
+From 7c9a315578e464d9be09f6cebf1d9d073731cd86 Mon Sep 17 00:00:00 2001
+From: Sanchayan Maity <sanchayan@asymptotic.io>
+Date: Thu, 24 Feb 2022 20:26:46 +0530
+Subject: [PATCH] ldac: Set eqmid in caps
+
+We set the eqmid in caps to be usable downstream by rtpldacpay for
+knowing the frame count.
+
+Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1797>
+---
+ subprojects/gst-plugins-bad/ext/ldac/gstldacenc.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/ext/ldac/gstldacenc.c b/ext/ldac/gstldacenc.c
+index 9ca2ef8fbf..cd82ae1396 100644
+--- a/ext/ldac/gstldacenc.c
++++ b/ext/ldac/gstldacenc.c
+@@ -231,6 +231,9 @@ gst_ldac_enc_do_negotiate (GstAudioEncoder * audio_enc)
+ output_caps = gst_caps_fixate (output_caps);
+ gst_caps_set_simple (output_caps, "framed", G_TYPE_BOOLEAN, TRUE, NULL);
+
++ /* Set EQMID in caps to be used downstream by rtpldacpay */
++ gst_caps_set_simple (output_caps, "eqmid", G_TYPE_INT, enc->eqmid, NULL);
++
+ GST_INFO_OBJECT (enc, "output caps %" GST_PTR_FORMAT, output_caps);
+
+ if (enc->channels == 1)
+--
+GitLab
+
diff --git a/media-plugins/gst-plugins-ldac/gst-plugins-ldac-1.20.0.ebuild b/media-plugins/gst-plugins-ldac/gst-plugins-ldac-1.20.0.ebuild
index 49888fee6a01..fd93ab9645b1 100644
--- a/media-plugins/gst-plugins-ldac/gst-plugins-ldac-1.20.0.ebuild
+++ b/media-plugins/gst-plugins-ldac/gst-plugins-ldac-1.20.0.ebuild
@@ -11,3 +11,8 @@ KEYWORDS="~amd64 ~x86"
RDEPEND="media-libs/libldac[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
+
+# Fixes backported to 1.20.0, to be removed in 1.20.1
+PATCHES=(
+ "${FILESDIR}/gst-plugins-ldac-1.20.0-ldac-payload-header.patch"
+)