* [gentoo-commits] repo/gentoo:master commit in: media-libs/gst-plugins-good/files/
@ 2019-03-03 18:59 Mart Raudsepp
0 siblings, 0 replies; 2+ messages in thread
From: Mart Raudsepp @ 2019-03-03 18:59 UTC (permalink / raw
To: gentoo-commits
commit: fe8600ef58ed3251c1c39d81dc627d1f8bc752f4
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun Mar 3 16:06:16 2019 +0000
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Mar 3 18:59:09 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe8600ef
media-libs/gst-plugins-good: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/11240
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
.../files/1.14.1-fix-32bit-rtpstorage-test.patch | 112 ---------------------
1 file changed, 112 deletions(-)
diff --git a/media-libs/gst-plugins-good/files/1.14.1-fix-32bit-rtpstorage-test.patch b/media-libs/gst-plugins-good/files/1.14.1-fix-32bit-rtpstorage-test.patch
deleted file mode 100644
index 3bca4f6cd6e..00000000000
--- a/media-libs/gst-plugins-good/files/1.14.1-fix-32bit-rtpstorage-test.patch
+++ /dev/null
@@ -1,112 +0,0 @@
-From 48dd93662d6c16fc5967ef4386a63db41683142d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?=
-Date: Sun, 27 May 2018 20:29:47 +0100
-Subject: tests: rtpstorage: fix potential crashes / test failures on 32-bit
-
-Pass 64 bits to g_object_set() for 64-bit integer properties like
-rtpstorage's "size-time" property.
-
-https://bugzilla.gnome.org/show_bug.cgi?id=796429
----
- tests/check/elements/rtpstorage.c | 21 +++++++++++----------
- tests/check/elements/rtpulpfec.c | 3 ++-
- 2 files changed, 13 insertions(+), 11 deletions(-)
-
-diff --git a/tests/check/elements/rtpstorage.c b/tests/check/elements/rtpstorage.c
-index 4a1d60f..e80b212 100644
---- a/tests/check/elements/rtpstorage.c
-+++ b/tests/check/elements/rtpstorage.c
-@@ -98,16 +98,17 @@ GST_START_TEST (rtpstorage_resize)
- guint i, j;
- GstBuffer *bufin, *bufout, *bufs[10];
- GstHarness *h = gst_harness_new ("rtpstorage");
-+
- gst_harness_set_src_caps_str (h, "application/x-rtp");
-
-- g_object_set (h->element, "size-time", 0, NULL);
-+ g_object_set (h->element, "size-time", (guint64) 0, NULL);
- bufin = create_rtp_packet (96, 0xabe2b0b, 0x111111, 0);
- bufout = gst_harness_push_and_pull (h, bufin);
- fail_unless (bufin == bufout);
- fail_unless (gst_buffer_is_writable (bufout));
-
-- g_object_set (h->element, "size-time",
-- (G_N_ELEMENTS (bufs) - 1) * RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element,
-+ "size-time", (guint64) (G_N_ELEMENTS (bufs) - 1) * RTP_PACKET_DUR, NULL);
-
- // Pushing 10 buffers all of them should have ref. count =2
- for (i = 0; i < G_N_ELEMENTS (bufs); ++i) {
-@@ -139,7 +140,7 @@ GST_START_TEST (rtpstorage_stop_redundant_packets)
- GstHarness *h = gst_harness_new ("rtpstorage");
- GstBuffer *bufinp;
-
-- g_object_set (h->element, "size-time", 2 * RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element, "size-time", (guint64) 2 * RTP_PACKET_DUR, NULL);
- gst_harness_set_src_caps_str (h, "application/x-rtp");
-
- bufinp = create_rtp_packet (96, 0xabe2b0b, 0x111111, 0);
-@@ -159,7 +160,7 @@ GST_START_TEST (rtpstorage_unknown_ssrc)
- {
- GstBufferList *bufs_out;
- GstHarness *h = gst_harness_new ("rtpstorage");
-- g_object_set (h->element, "size-time", RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element, "size-time", (guint64) RTP_PACKET_DUR, NULL);
- gst_harness_set_src_caps_str (h, "application/x-rtp");
-
- /* No packets has been pushed through yet */
-@@ -182,7 +183,7 @@ GST_START_TEST (rtpstorage_packet_not_lost)
- GstBuffer *buf;
- GstBufferList *bufs_out;
- GstHarness *h = gst_harness_new ("rtpstorage");
-- g_object_set (h->element, "size-time", 10 * RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element, "size-time", (guint64) 10 * RTP_PACKET_DUR, NULL);
- gst_harness_set_src_caps_str (h, "application/x-rtp");
-
- /* Pushing through 2 frames + 2 FEC */
-@@ -212,7 +213,7 @@ GST_START_TEST (test_rtpstorage_put_recovered_packet)
- GstBuffer *bufs_in[4];
- GstBufferList *bufs_out;
- GstHarness *h = gst_harness_new ("rtpstorage");
-- g_object_set (h->element, "size-time", 10 * RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element, "size-time", (guint64) 10 * RTP_PACKET_DUR, NULL);
- gst_harness_set_src_caps_str (h, "application/x-rtp");
-
- /* Pushing through 2 frames + 2 FEC
-@@ -331,7 +332,7 @@ _multiple_ssrcs_test (guint16 nth_to_loose,
- guint16 stream0_seq_start = 200;
- guint16 stream1_seq_start = 65529;
- GstHarness *h = gst_harness_new ("rtpstorage");
-- g_object_set (h->element, "size-time", 12 * RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element, "size-time", (guint64) 12 * RTP_PACKET_DUR, NULL);
- gst_harness_set_src_caps_str (h, "application/x-rtp");
-
- _single_ssrc_test (h, 0x0abe2b0b, stream0_seq_start,
-@@ -453,8 +454,8 @@ GST_START_TEST (rtpstorage_stress)
- StressTestData test_data;
- guint seed, i, total, requested;
- GstHarness *h = gst_harness_new ("rtpstorage");
-- g_object_set (h->element, "size-time",
-- STRESS_TEST_STORAGE_DEPTH * RTP_PACKET_DUR, NULL);
-+ g_object_set (h->element,
-+ "size-time", (guint64) STRESS_TEST_STORAGE_DEPTH * RTP_PACKET_DUR, NULL);
-
- /* The stress test pushes buffers with STRESS_TEST_SSRCS different
- * ssrcs from one thread and requests packets for FEC recovery from
-diff --git a/tests/check/elements/rtpulpfec.c b/tests/check/elements/rtpulpfec.c
-index e0fa972..57de5cd 100644
---- a/tests/check/elements/rtpulpfec.c
-+++ b/tests/check/elements/rtpulpfec.c
-@@ -154,7 +154,8 @@ harness_rtpulpfecdec (guint32 ssrc, guint8 lost_pt, guint8 fec_pt)
- g_strdup_printf ("application/x-rtp,ssrc=(uint)%u,payload=(int)%u",
- ssrc, lost_pt);
-
-- gst_harness_set (h, "rtpstorage", "size-time", 200 * RTP_PACKET_DUR, NULL);
-+ gst_harness_set (h, "rtpstorage", "size-time", (guint64) 200 * RTP_PACKET_DUR,
-+ NULL);
- gst_harness_get (h, "rtpstorage", "internal-storage", &internal_storage,
- NULL);
- gst_harness_set (h, "rtpulpfecdec", "storage", internal_storage, "pt", fec_pt,
---
-cgit v1.1
-
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/gst-plugins-good/files/
@ 2022-03-27 22:08 Conrad Kostecki
0 siblings, 0 replies; 2+ messages in thread
From: Conrad Kostecki @ 2022-03-27 22:08 UTC (permalink / raw
To: gentoo-commits
commit: eeeda2ee3785c457be61b74887e6dd84ccbe07c2
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri Mar 18 06:21:00 2022 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Mar 27 22:07:07 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeeda2ee
media-libs/gst-plugins-good: remove unused patch(es)
Closes: https://github.com/gentoo/gentoo/pull/24633
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
...t-plugins-good-1.20.0-lame-feature-option.patch | 23 ---
| 163 ---------------------
2 files changed, 186 deletions(-)
diff --git a/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-lame-feature-option.patch b/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-lame-feature-option.patch
deleted file mode 100644
index c431b1fb6bd7..000000000000
--- a/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-lame-feature-option.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-commit d03971dac7b32a6ffcbf161853e017f65ae7c22f
-Author: Heiko Becker <heirecka@exherbo.org>
-Date: Fri Feb 11 21:35:54 2022 +0100
-
- meson: Don't build lame plugin with -Dlame=disabled
-
- Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1686>
-
-diff --git a/ext/lame/meson.build b/ext/lame/meson.build
-index 2169fde6f4..3290f17e1e 100644
---- a/ext/lame/meson.build
-+++ b/ext/lame/meson.build
-@@ -1,5 +1,10 @@
-+lame_dep = dependency('', required: false)
- lame_option = get_option('lame')
-
-+if lame_option.disabled()
-+ subdir_done()
-+endif
-+
- lame_extra_c_args = []
- lame_dep = cc.find_library('mp3lame', required: false)
- have_lame = cc.has_header_symbol('lame/lame.h', 'lame_init')
diff --git a/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-ldac-rtp-header.patch b/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-ldac-rtp-header.patch
deleted file mode 100644
index f1fc4601a23a..000000000000
--- a/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-ldac-rtp-header.patch
+++ /dev/null
@@ -1,163 +0,0 @@
-From cc3419daf60159394cd310c2405a78775b3f84db Mon Sep 17 00:00:00 2001
-From: Sanchayan Maity <sanchayan@asymptotic.io>
-Date: Thu, 24 Feb 2022 20:28:23 +0530
-Subject: [PATCH] rtp: ldac: Set frame count information in payload
-
-The RTP payload seems to be required as it carries the frame count
-information. Also, gst_rtp_base_payload_allocate_output_buffer had
-the second argument incorrect.
-
-Strangely some devices like Shanling MP4 and Sony XM3 would still
-work without this while some like the Sony XM4 do not.
-
-Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1797>
----
- .../docs/gst_plugins_cache.json | 2 +-
- .../gst-plugins-good/gst/rtp/gstrtpldacpay.c | 63 ++++++++++++++++++-
- .../gst-plugins-good/gst/rtp/gstrtpldacpay.h | 1 +
- 3 files changed, 62 insertions(+), 4 deletions(-)
-
-diff --git a/docs/gst_plugins_cache.json b/docs/gst_plugins_cache.json
-index 88bff47243..003546d59d 100644
---- a/docs/gst_plugins_cache.json
-+++ b/docs/gst_plugins_cache.json
-@@ -14678,7 +14678,7 @@
- "long-name": "RTP packet payloader",
- "pad-templates": {
- "sink": {
-- "caps": "audio/x-ldac:\n channels: [ 1, 2 ]\n rate: { (int)44100, (int)48000, (int)88200, (int)96000 }\n",
-+ "caps": "audio/x-ldac:\n channels: [ 1, 2 ]\n eqmid: { (int)0, (int)1, (int)2 }\n rate: { (int)44100, (int)48000, (int)88200, (int)96000 }\n",
- "direction": "sink",
- "presence": "always"
- },
-diff --git a/gst/rtp/gstrtpldacpay.c b/gst/rtp/gstrtpldacpay.c
-index 2b14b746fe..aa30673e7e 100644
---- a/gst/rtp/gstrtpldacpay.c
-+++ b/gst/rtp/gstrtpldacpay.c
-@@ -48,7 +48,7 @@
- #include "gstrtpldacpay.h"
- #include "gstrtputils.h"
-
--#define GST_RTP_HEADER_LENGTH 12
-+#define GST_RTP_LDAC_PAYLOAD_HEADER_SIZE 1
- /* MTU size required for LDAC A2DP streaming */
- #define GST_LDAC_MTU_REQUIRED 679
-
-@@ -64,6 +64,7 @@ static GstStaticPadTemplate gst_rtp_ldac_pay_sink_factory =
- GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("audio/x-ldac, "
- "channels = (int) [ 1, 2 ], "
-+ "eqmid = (int) { 0, 1, 2 }, "
- "rate = (int) { 44100, 48000, 88200, 96000 }")
- );
-
-@@ -81,6 +82,38 @@ static gboolean gst_rtp_ldac_pay_set_caps (GstRTPBasePayload * payload,
- static GstFlowReturn gst_rtp_ldac_pay_handle_buffer (GstRTPBasePayload *
- payload, GstBuffer * buffer);
-
-+/**
-+ * gst_rtp_ldac_pay_get_num_frames
-+ * @eqmid: Encode Quality Mode Index
-+ * @channels: Number of channels
-+ *
-+ * Returns: Number of LDAC frames per packet.
-+ */
-+static guint8
-+gst_rtp_ldac_pay_get_num_frames (gint eqmid, gint channels)
-+{
-+ g_assert (channels == 1 || channels == 2);
-+
-+ switch (eqmid) {
-+ /* Encode setting for High Quality */
-+ case 0:
-+ return 4 / channels;
-+ /* Encode setting for Standard Quality */
-+ case 1:
-+ return 6 / channels;
-+ /* Encode setting for Mobile use Quality */
-+ case 2:
-+ return 12 / channels;
-+ default:
-+ break;
-+ }
-+
-+ g_assert_not_reached ();
-+
-+ /* If assertion gets compiled out */
-+ return 6 / channels;
-+}
-+
- static void
- gst_rtp_ldac_pay_class_init (GstRtpLdacPayClass * klass)
- {
-@@ -115,7 +148,7 @@ gst_rtp_ldac_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
- {
- GstRtpLdacPay *ldacpay = GST_RTP_LDAC_PAY (payload);
- GstStructure *structure;
-- gint rate;
-+ gint channels, eqmid, rate;
-
- if (GST_RTP_BASE_PAYLOAD_MTU (ldacpay) < GST_LDAC_MTU_REQUIRED) {
- GST_ERROR_OBJECT (ldacpay, "Invalid MTU %d, should be >= %d",
-@@ -129,6 +162,18 @@ gst_rtp_ldac_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
- return FALSE;
- }
-
-+ if (!gst_structure_get_int (structure, "channels", &channels)) {
-+ GST_ERROR_OBJECT (ldacpay, "Failed to get audio rate from caps");
-+ return FALSE;
-+ }
-+
-+ if (!gst_structure_get_int (structure, "eqmid", &eqmid)) {
-+ GST_ERROR_OBJECT (ldacpay, "Failed to get eqmid from caps");
-+ return FALSE;
-+ }
-+
-+ ldacpay->frame_count = gst_rtp_ldac_pay_get_num_frames (eqmid, channels);
-+
- gst_rtp_base_payload_set_options (payload, "audio", TRUE, "X-GST-LDAC", rate);
-
- return gst_rtp_base_payload_set_outcaps (payload, NULL);
-@@ -145,14 +190,26 @@ gst_rtp_ldac_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
- static GstFlowReturn
- gst_rtp_ldac_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
- {
-+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
- GstRtpLdacPay *ldacpay = GST_RTP_LDAC_PAY (payload);
- GstBuffer *outbuf;
- GstClockTime outbuf_frame_duration, outbuf_pts;
-+ guint8 *payload_data;
- gsize buf_sz;
-
- outbuf =
- gst_rtp_base_payload_allocate_output_buffer (GST_RTP_BASE_PAYLOAD
-- (ldacpay), GST_RTP_HEADER_LENGTH, 0, 0);
-+ (ldacpay), GST_RTP_LDAC_PAYLOAD_HEADER_SIZE, 0, 0);
-+
-+ /* Get payload */
-+ gst_rtp_buffer_map (outbuf, GST_MAP_WRITE, &rtp);
-+
-+ /* Write header and copy data into payload */
-+ payload_data = gst_rtp_buffer_get_payload (&rtp);
-+ /* Upper 3 fragment bits not used, ref A2DP v13, 4.3.4 */
-+ payload_data[0] = ldacpay->frame_count & 0x0f;
-+
-+ gst_rtp_buffer_unmap (&rtp);
-
- outbuf_pts = GST_BUFFER_PTS (buffer);
- outbuf_frame_duration = GST_BUFFER_DURATION (buffer);
-diff --git a/gst/rtp/gstrtpldacpay.h b/gst/rtp/gstrtpldacpay.h
-index 0865ce7ade..0134491752 100644
---- a/gst/rtp/gstrtpldacpay.h
-+++ b/gst/rtp/gstrtpldacpay.h
-@@ -42,6 +42,7 @@ typedef struct _GstRtpLdacPayClass GstRtpLdacPayClass;
-
- struct _GstRtpLdacPay {
- GstRTPBasePayload base;
-+ guint8 frame_count;
- };
-
- struct _GstRtpLdacPayClass {
---
-GitLab
-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-27 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-03 18:59 [gentoo-commits] repo/gentoo:master commit in: media-libs/gst-plugins-good/files/ Mart Raudsepp
-- strict thread matches above, loose matches on Subject: below --
2022-03-27 22:08 Conrad Kostecki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox