disable unused plugins in TV product
authorYounghwan <younghwan_.an@samsung.com>
Mon, 28 Nov 2016 11:07:21 +0000 (20:07 +0900)
committerYounghwan <younghwan_.an@samsung.com>
Wed, 30 Nov 2016 06:15:37 +0000 (15:15 +0900)
Change-Id: I1304e5592048c3b43d490038355e48bf1c759dbf

ext/libav/gstav.c
ext/libav/gstavaudenc.c
packaging/gst-libav.spec

index 1c2e482..12e3502 100644 (file)
@@ -127,13 +127,16 @@ plugin_init (GstPlugin * plugin)
 
   av_register_all ();
 
-  gst_ffmpegaudenc_register (plugin);
+#ifndef TIZEN_PRODUCT_TV
   gst_ffmpegvidenc_register (plugin);
   gst_ffmpegauddec_register (plugin);
   gst_ffmpegviddec_register (plugin);
   gst_ffmpegdemux_register (plugin);
   gst_ffmpegmux_register (plugin);
   gst_ffmpegdeinterlace_register (plugin);
+#endif
+  gst_ffmpegaudenc_register (plugin);
+
 #if 0
   gst_ffmpegscale_register (plugin);
 #endif
index 64d7011..0009ce1 100644 (file)
@@ -783,6 +783,11 @@ gst_ffmpegaudenc_register (GstPlugin * plugin)
       goto next;
     }
 
+#ifdef TIZEN_PRODUCT_TV
+    if (in_plugin->id != AV_CODEC_ID_AAC)
+     goto next;
+#endif
+
     /* No encoders depending on external libraries (we don't build them, but
      * people who build against an external ffmpeg might have them.
      * We have native gstreamer plugins for all of those libraries anyway. */
index f88d52d..d73755c 100644 (file)
@@ -38,6 +38,9 @@ NOCONFIGURE=1 ./autogen.sh
 export CFLAGS+=" -Wall -g -fPIC\
  -DGST_TIZEN_MODIFICATION\
  -DTIZEN_FEATURE_LIBAV   \
+%if "%{TIZEN_PRODUCT_TV}" == "1"
+ -DTIZEN_PRODUCT_TV \
+%endif
  -DLIBAV_RANK_MODIFICATION"
 
 %configure  --disable-static \