I modify the ti omx decode example in the ezsdk 5.04 to make it a multi-channel decoder. When I increase the channel to 6, the "OMX.TI.DUCATI.VIDDEC" componets were created successfully. Then, I called the OMX_SendCommand function to change the state to OMX_STATE_IDEL, and allocated input and output buffers for each component. The first five worked fine, and the component's state changed to idle successfully. The sixth one failed to change the state(do not trigger the callback event handler), but the OMX_SendCommand function returns no error.
The attach is the code, which could be maked in the /usr/local/ezsdk folder using make omx->make install. The macro Decode_Channel in the header file ilclient.h can be changed to set the decode channel.
Could someone help me to solve the problem? Thanks very much!