[vlc-commits] omxil: Only try to enable the samsung-specific 420p mode on video decoders

Martin Storsjö git at videolan.org
Sat Feb 2 18:42:50 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Sat Feb  2 19:38:17 2013 +0200| [71c82ba2d21758e3d2bbbdb6ec74281490370b58] | committer: Martin Storsjö

omxil: Only try to enable the samsung-specific 420p mode on video decoders

It doesn't make any sense for audio decoders and only leads to
extra log warnings.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71c82ba2d21758e3d2bbbdb6ec74281490370b58
---

 modules/codec/omxil/omxil.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 4c23328..7c925fc 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -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);



More information about the vlc-commits mailing list