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>
This commit is contained in:
Igor V. Kovalenko
2022-02-26 20:44:25 +03:00
committed by Sam James
parent cf1b18cbd8
commit bf13b79a72
2 changed files with 35 additions and 0 deletions

View File

@@ -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

View File

@@ -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"
)