rtpmanager: Exclude unused elements 25/324225/1
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 14 May 2025 08:40:01 +0000 (17:40 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 14 May 2025 08:45:58 +0000 (17:45 +0900)
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 <sc11.lee@samsung.com>
packaging/gstreamer.spec
subprojects/gst-plugins-good/gst/rtpmanager/gstrtpmanager.c
subprojects/gst-plugins-good/gst/rtpmanager/meson.build

index 296f7bbd804915f53482f97e81a1b306da377e43..d2905fa1a3ea96ce817390048d4cae39579cfe3d 100644 (file)
@@ -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
index 59a9eeb3a2cd30e75717960a7ef84c20d31b217c..2144a128ae6bf934e9dd6918e5f7518a18418df3 100644 (file)
@@ -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;
 }
index 11435d902f0a20bbdcf905df721f1eec5e91289f..6aae049f2b1f00495914164d90b77d7b9ed06c41 100644 (file)
@@ -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,