[Bug 774654] Flushing can hang if output port queue of pending buffers is empty

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Nov 26 08:57:55 UTC 2016


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

--- Comment #5 from formruga at gmail.com ---
Proper sequence of steps in gst_omx_video_dec_flush are:
0) Pause the components
1) Set flushing to get back buffers from components
2) Wait until the srcpad loop is stopped
3) Resume components
4) Unset flushing to allow ports to accept data again

As one can see wait has to be after set flushing. In OMXIL specification put a
component into pause, does not mean that any OMX buffers will be returned, thus
gst-omx acquire buffer function can't returned to srcpad task if no messages
are in comp->messages.

-- 
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