We are working on a player application being developed in C code and controlled through a Java application. We provide surface(native window) as a source of buffers. When we used the TI H.264 decoder through IOMX, we observed port settings changed call being called by H.264 decoder multiple times. In relation to this I had a few questions.
1. Is there a way to reduce the number of times the port settings change call is made by the decoder?
2. Also, we are providing buffers obtained through surface (native window) to decoder for outputting the decoded data. Whenever a port settings change call is seen, we need to release the buffers given to the decoder component and give a new set of buffers. Is there a way to release these Surface (native window) buffers apart from removing and adding the Surface View in the Java Layer? Is there no way of releasing buffers from native C code itself?
Any help is highly appreciated.