[gstreamer-bugs] [Bug 318116] new state change patch

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Oct 6 07:02:39 PDT 2005


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=318116
 GStreamer | gstreamer (core) | Ver: HEAD CVS





------- Additional Comments From Wim Taymans  2005-10-06 14:02 -------
Created an attachment (id=53113)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=53113&action=view)
proposed patch

this patch makes sure set_state() never blocks. It can return ASYNC and will
then asynchronously move itself to the target state at which point it will post
a message. A get_state() call blocks until the desired target state is reached.


The pending state in the get_state() call now returns the target value of the
state change. A get_state() can thus return current:READY pending:PLAYING if
the element is currently going from READY to PAUSED but was requested to go to
PLAYING after that.

Downward state changes also never block and will ignore all intermediate ASYNC
state changes up to the final state.

Error conditions are also handled better so that no lockups can occur when
trying to recover from an error.

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




More information about the Gstreamer-bugs mailing list