]> git.sesse.net Git - vlc/blobdiff - modules/codec/omxil/omxil.c
omxil: Only try to enable the samsung-specific 420p mode on video decoders
[vlc] / modules / codec / omxil / omxil.c
index 4c233286b251783ea53fde755b6f086a7c2c24a1..7c925fcb4a6ab2761ac15d5963d98b21824c0e92 100644 (file)
@@ -758,7 +758,8 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec,
         CHECK_ERROR(omx_error, "couldn't find an input and output port");
     }
 
-    if(!strncmp(p_sys->psz_component, "OMX.SEC.", 8))
+    if(!strncmp(p_sys->psz_component, "OMX.SEC.", 8) &&
+       p_dec->fmt_in.i_cat == VIDEO_ES)
     {
         OMX_INDEXTYPE index;
         omx_error = OMX_GetExtensionIndex(omx_handle, (OMX_STRING) "OMX.SEC.index.ThumbnailMode", &index);