omx: Fix deadlock between ending a flush and the event handler
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 25 Apr 2012 11:05:40 +0000 (16:35 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 26 Apr 2012 04:12:50 +0000 (09:42 +0530)
commit036cd167560c16dc3235e9d4e57f577150a3b461
tree44f3a571d691481a07b0fdbb9d36d06ea74ce4b0
parentd99fa5e3b38148aaed5b375148dfd1cbb49a087f
omx: Fix deadlock between ending a flush and the event handler

gst_omx_port_set_flushing() calls OMX_FillThisBuffer at the end of a flush
without releasing the port lock, and this can cause a deadlock with the
EventHandler. This patches fixes this by dropping the lock for the duration of
the fill buffer call.
omx/gstomx.c