mm-video: vidc: Flush buffers on OMX command

Move the flush buffer logic to trigger on OMX_CommandFlush.  This avoids
some race conditions that occurs when client fails to call PortDisable
quickly enough after a port reconfiguration.

Change-Id: Ie19fae01148767512227b0810945858342be9fbc
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
1 file changed