From 287064c20e4a51b2305f6290dd369ca4717d8efb Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Wed, 14 May 2025 17:40:01 +0900 Subject: [PATCH] rtpmanager: Exclude unused elements Elements below have been excluded. : rtphdrext-*, rtpst2022_1_fecdec, rtpst2022_1_fecenc [Version] 1.24.11-16 [Issue Type] lightweighting Change-Id: I61c31aba72357e1b8cf3b9e34a061dd92371f24b Signed-off-by: Sangchul Lee --- packaging/gstreamer.spec | 2 +- .../gst/rtpmanager/gstrtpmanager.c | 2 ++ .../gst/rtpmanager/meson.build | 25 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/packaging/gstreamer.spec b/packaging/gstreamer.spec index 296f7bbd80..d2905fa1a3 100644 --- a/packaging/gstreamer.spec +++ b/packaging/gstreamer.spec @@ -61,7 +61,7 @@ Name: %{_name} Version: 1.24.11 -Release: 15 +Release: 16 Summary: Streaming-Media Framework Runtime License: LGPL-2.0+ Group: Multimedia/Framework diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpmanager.c b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpmanager.c index 59a9eeb3a2..2144a128ae 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpmanager.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpmanager.c @@ -57,6 +57,7 @@ plugin_init (GstPlugin * plugin) ret |= GST_ELEMENT_REGISTER (rtpmux, plugin); ret |= GST_ELEMENT_REGISTER (rtpdtmfmux, plugin); ret |= GST_ELEMENT_REGISTER (rtpfunnel, plugin); +#ifndef TIZEN_FEATURE_EXCLUDE_UNUSED_ELEMENTS ret |= GST_ELEMENT_REGISTER (rtpst2022_1_fecdec, plugin); ret |= GST_ELEMENT_REGISTER (rtpst2022_1_fecenc, plugin); ret |= GST_ELEMENT_REGISTER (rtphdrexttwcc, plugin); @@ -65,6 +66,7 @@ plugin_init (GstPlugin * plugin) ret |= GST_ELEMENT_REGISTER (rtphdrextntp64, plugin); ret |= GST_ELEMENT_REGISTER (rtphdrextstreamid, plugin); ret |= GST_ELEMENT_REGISTER (rtphdrextrepairedstreamid, plugin); +#endif return ret; } diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/meson.build b/subprojects/gst-plugins-good/gst/rtpmanager/meson.build index 11435d902f..6aae049f2b 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/meson.build +++ b/subprojects/gst-plugins-good/gst/rtpmanager/meson.build @@ -1,3 +1,27 @@ +if get_option('exclude-unused-elements') # Not using the method of adding list to make it easy to upgrade opensource codes +# remove unused 'gstrtphdrext-*.c', 'gstrtpst2022_1_fecdec.c', 'gstrtpst2022_1_fecenc.c' from the original sources +rtpmanager_sources = [ + 'gstrtpmanager.c', + 'gstrtpbin.c', + 'gstrtpdtmfmux.c', + 'gstrtpjitterbuffer.c', + 'gstrtpmux.c', + 'gstrtpptdemux.c', + 'gstrtprtxqueue.c', + 'gstrtprtxreceive.c', + 'gstrtprtxsend.c', + 'gstrtpssrcdemux.c', + 'rtpjitterbuffer.c', + 'rtpsession.c', + 'rtpsource.c', + 'rtpstats.c', + 'rtptimerqueue.c', + 'rtptwcc.c', + 'gstrtpsession.c', + 'gstrtpfunnel.c', + 'gstrtputils.c' +] +else rtpmanager_sources = [ 'gstrtpmanager.c', 'gstrtpbin.c', @@ -27,6 +51,7 @@ rtpmanager_sources = [ 'gstrtpst2022-1-fecenc.c', 'gstrtputils.c' ] +endif gstrtpmanager = library('gstrtpmanager', rtpmanager_sources, -- 2.34.1