port: Fix hanging in H.263/MPEG4 seek by handling RO buffer at flush.
port: Fix hanging in H.263/MPEG4 seek by handling RO buffer at flush.

Need to handle read-only buffer at gst_omx_port_flush since port->queue might
have the same buffers from FBD and EventHandler of OMX_TI_EventBufferRefCount.

v2: remove the 80 line rule in release_buffer.
v3: Optimized the code by combining the else statement as both doing the same.

Signed-off-by: Buddy Liong <e4bd8412a8252f2410b55ddcc853c037cf26ce3d@ti.com>
Signed-off-by: Daniel Diaz <ed054987dd20aebbd314fbb0d175066628f13717@ti.com>

mrchapp/gst-openmax,mrchapp/gst-openmax-devel,mrchapp/gst-openmax,mrchapp/gst-openmax-devel,mrchapp/gst-openmax-devel,mrchapp/gst-openmax