From d98e218baa38749b6633f4fa2f2af3a9581567f7 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Tue, 10 May 2011 22:24:23 +0200 Subject: [PATCH] Explain a bit more about why prepare_change is needed --- mopidy/gstreamer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mopidy/gstreamer.py b/mopidy/gstreamer.py index 7125efe9..3c8941fa 100644 --- a/mopidy/gstreamer.py +++ b/mopidy/gstreamer.py @@ -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)