[gstreamer-bugs] [Bug 505770] gst_element_get_state() should unblock if element posts an error

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 10 02:51:17 PDT 2009


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



--- Comment #10 from Wim Taymans <wim.taymans at gmail.com> 2009-09-10 09:51:14 UTC ---
gstbin has a sync bus handler where it receives all bus messages from all
children. When you see and error, see if there is a state change going on, mark
the state change as error and signal the element state gcond to unblock the
pending wait.

The reason why it's not currently done is because it is not deterministic.
Sometimes a state change would work without error (and you get the error later)
or sometimes it would fail because the error message was posted faster.

Maybe it's better to unblock the gcond without changing the state change return
value. It needs some thinking.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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