Reset to ready state before playing

This commit is contained in:
Thomas Adamcik 2010-02-15 00:09:39 +01:00
parent dda2fe05a3
commit 62be30df04

View File

@ -69,6 +69,7 @@ class GStreamerPlaybackController(BasePlaybackController):
elif playlist.tracks:
self.current_track = playlist.tracks[0]
self.bin.set_state(gst.STATE_READY)
self.bin.set_property("uri", self.current_track.uri)
self.bin.set_state(gst.STATE_PLAYING)