Commit cd659727 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf

omxil: Enable OMX.SEC.index.ThumbnailMode if available

This custom setting makes sure the codec actually fills the
OMX buffers with data, instead of opaque pointers to buffers
residing elsewhere.

This is needed in order to get sensible data output on
Nexus S, and most probably also on Galaxy S.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3bd67a1e
......@@ -636,6 +636,18 @@ 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))
{
OMX_INDEXTYPE index;
omx_error = OMX_GetExtensionIndex(omx_handle, "OMX.SEC.index.ThumbnailMode", &index);
if(omx_error == OMX_ErrorNone)
{
OMX_BOOL enable = OMX_TRUE;
omx_error = OMX_SetConfig(omx_handle, index, &enable);
CHECK_ERROR(omx_error, "Unable to set ThumbnailMode");
}
}
/* Set port definitions */
for(i = 0; i < p_sys->ports; i++)
{
......
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