This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omx use buffer problem.



Hi,

As in my last Threads i am still editing the omx examples. I have copied and edited the vlpb component to have 2 inputs and 1 output.  I called it vifu.(at the moment input 1 is copied to the output and the data from input 2 is not used, later i want to do some processing on the dsp with both video streams and have one output stream.) To use this component i took the capture encode example and inserted a second capture component and my vifu component.

first i had the Insufficient Resources Problem when allocating larger buffers on the dsp, however this thread was very helpful: link

The allocation of the buffers seem to work.

Now i want to use this buffers and here is the Problem:

I am Calling OMX_UseBuffer() for the output buffers of the first capture component with the already allocated input buffers from the vifu component:

         eError = OMX_UseBuffer (pAppData->pCap1Handle,
                                     &pAppData->cap1ILComp->outPortParams->pOutBuff[i],
                                    OMX_VFCC_OUTPUT_PORT_START_INDEX,
                                  pAppData->cap1ILComp,
                                  (&pAppData->vifuILComp->outPortParams[0])->nBufferSize,
                                  (&pAppData->vifuILComp->outPortParams[0])->pOutBuff[i]->pBuffer);

This is only working for 5 times! The Program hangs on the 6th calling. I don't even see debug outputs of DOMX functions like the first 5 times: "Entered function :omxproxy_use_buffer"   

What ca i do?

 

regards,

Nico