Explain a bit more about why prepare_change is needed

This commit is contained in:
Thomas Adamcik 2011-05-10 22:24:23 +02:00
parent 1c83fe236d
commit d98e218baa

View File

@ -184,7 +184,9 @@ class GStreamer(ThreadingActor):
Notify GStreamer that we are about to change state of playback.
This function always needs to be called before changing URIS or doing
changes like updating data that is being pushed.
changes like updating data that is being pushed. The reason for this
is that GStreamer will reset all its state when it changes to
:attr:`gst.STATE_READY`.
"""
return self._set_state(gst.STATE_READY)