[Bug 789475] omx: wait for flush complete and buffers being released when flushing

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Oct 31 10:09:22 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=789475

Guillaume Desmottes <gdesmott at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #362254|accepted-commit_now         |none
             status|                            |
 Attachment #362254|0                           |1
        is obsolete|                            |

--- Comment #10 from Guillaume Desmottes <gdesmott at gnome.org> ---
Created attachment 362611
  --> https://bugzilla.gnome.org/attachment.cgi?id=362611&action=edit
omx: wait for flush complete and buffers being released when flushing

As stated in the existing comment, when flusing we should wait for OMX
to send the flush command complete event AND all ports being released.
We were stopping as soon as one of those condition was met.

Fix a race between FillThisBufferDone/EmptyBufferDone and the flush
EventCmdComplete messages. The OMX implementation is supposed to release
its buffers before posting the EventCmdComplete event but the ordering
isn't guaranteed as the FillThisBufferDone/EmptyBufferDone and
EventHandler callbacks can be called from different threads (cf 2.7
'Thread Safety' in the spec).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list