Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 123918

Forum Post: Disabling and re-enabling an OMX input port

$
0
0

Hi,

I'm trying to reconfigure the OMX DEI input port to use a different stride whilst the app is running. I am disabling the input port, changing the settings on it, then re-enabling it. Disabling it and changing its settings seems to work but the port will not re-enable. I never get the event callback that posts the port_sem for it. I tried not modifying the port settings and just disabling the port then re-enabling it but it wont enable. I even tried setting the state of the DEI to Idle and that does not work either.

The code i'm using to disable then enable the port is:

OMX_SendCommand (pAppData->pDeiHandle, OMX_CommandPortDisable,
OMX_VFPC_INPUT_PORT_START_INDEX, NULL);

semp_pend (pAppData->dei2ILComp->port_sem);

OMX_SendCommand (pAppData->pDeiHandle, OMX_CommandPortEnable,
OMX_VFPC_INPUT_PORT_START_INDEX, NULL);

semp_pend (pAppData->dei2ILComp->port_sem);

How can I re-enable the port without going back to the OMX_StateLoaded? Is this a bug in the OMX code?

Thanks,

Steven


Viewing all articles
Browse latest Browse all 123918

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>