[vlc-devel] [RFC PATCH 08/10] mediacodec: remove mediacodec-audio option
Thomas Guillem
thomas at gllm.fr
Thu Apr 21 11:53:42 CEST 2016
---
modules/codec/omxil/mediacodec.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 235c343..f64b2e3 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -187,8 +187,6 @@ vlc_module_begin ()
set_capability( "decoder", 0 ) /* Only enabled via commandline arguments */
add_bool(CFG_PREFIX "dr", true,
DIRECTRENDERING_TEXT, DIRECTRENDERING_LONGTEXT, true)
- add_bool(CFG_PREFIX "audio", false,
- MEDIACODEC_AUDIO_TEXT, MEDIACODEC_AUDIO_LONGTEXT, true)
add_bool(CFG_PREFIX "tunneled-playback", false,
MEDIACODEC_TUNNELEDPLAYBACK_TEXT, NULL, true)
set_callbacks( OpenDecoderNdk, CloseDecoder )
@@ -509,11 +507,6 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
const char *mime = NULL;
bool b_late_opening = false;
- /* Video or Audio if "mediacodec-audio" bool is true */
- if (p_dec->fmt_in.i_cat != VIDEO_ES && (p_dec->fmt_in.i_cat != AUDIO_ES
- || !var_InheritBool(p_dec, CFG_PREFIX "audio")))
- return VLC_EGENERIC;
-
if( !decoder_ShouldHWAccel( p_dec ))
return VLC_EGENERIC;
--
2.8.0.rc3
More information about the vlc-devel
mailing list