Commit 71c82ba2 authored by Martin Storsjö's avatar 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: default avatarMartin Storsjö <martin@martin.st>
parent 9d5daca2
...@@ -758,7 +758,8 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec, ...@@ -758,7 +758,8 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec,
CHECK_ERROR(omx_error, "couldn't find an input and output port"); 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_INDEXTYPE index;
omx_error = OMX_GetExtensionIndex(omx_handle, (OMX_STRING) "OMX.SEC.index.ThumbnailMode", &index); omx_error = OMX_GetExtensionIndex(omx_handle, (OMX_STRING) "OMX.SEC.index.ThumbnailMode", &index);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment