From: Younghwan Date: Mon, 28 Nov 2016 11:09:50 +0000 (+0900) Subject: disable unused plugins in TV product X-Git-Tag: accepted/tizen/common/20161207.184542^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=376944be94a911fc952ad003983e55556ec167d0;p=platform%2Fupstream%2Fgst-libav.git disable unused plugins in TV product Change-Id: Iaa7cdcba9d5e6840f46181b9204edd1cfa37e7d1 --- diff --git a/ext/libav/gstav.c b/ext/libav/gstav.c index 1c2e482..12e3502 100644 --- a/ext/libav/gstav.c +++ b/ext/libav/gstav.c @@ -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 diff --git a/ext/libav/gstavaudenc.c b/ext/libav/gstavaudenc.c index 64d7011..0009ce1 100644 --- a/ext/libav/gstavaudenc.c +++ b/ext/libav/gstavaudenc.c @@ -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. */ diff --git a/packaging/gst-libav.spec b/packaging/gst-libav.spec index f88d52d..d73755c 100644 --- a/packaging/gst-libav.spec +++ b/packaging/gst-libav.spec @@ -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 \