mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
committed by
Sam James
parent
cf1b18cbd8
commit
bf13b79a72
@@ -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
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user