]> git.sesse.net Git - vlc/commitdiff
omxil: Only try to enable the samsung-specific 420p mode on video decoders
authorMartin Storsjö <martin@martin.st>
Sat, 2 Feb 2013 17:38:17 +0000 (19:38 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 2 Feb 2013 17:41:45 +0000 (19:41 +0200)
It doesn't make any sense for audio decoders and only leads to
extra log warnings.

Signed-off-by: Martin Storsjö <martin@martin.st>
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);