The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

OMX_AllocateBuffer failing

Hi I'm New to omxIL. I'm trying to decode a sample .264 content on FSL imx_51 platorm running on Android 2.0 ,
After calling OMX_GetHandle, the component is created and moves to OMX_StateLoaded.
But after OMX_SendCommand(appPriv->videodechandle, OMX_CommandStateSet, OMX_StateIdle, 0)
The same component is not moving to OMX_StateIdle.
Also OMX_AllocateBuffer is failing.
Anyone please go through my below code. Help me out.

The OMX_GetState() calls around the OMX_SendCommand() call may indicate that you think that the state will change during the call. This is not guaranteed, as OMX_SendCommand() is defined as asynhronous - a callback will be received when the command completes. Depending upon the implementation, in general, this may or may not be before you return from OMX_SendCommand().

As you haven't disabled the component's ports, you're guaranteed that the state will still be idle after the above call to OMX_SendCommand(), as the ports are not yet populated.