Update resume method

This commit is contained in:
Thomas Adamcik 2010-02-18 02:31:20 +01:00
parent ea8399b58a
commit 1bc3693c6b

View File

@ -79,8 +79,10 @@ class GStreamerPlaybackController(BasePlaybackController):
self._set_state(gst.STATE_PAUSED)
def resume(self):
if self.state != self.PLAYING:
self.bin.set_state(gst.STATE_PLAYING)
if self.state == self.STOPPED:
self.play()
else:
self._set_state(gst.STATE_PLAYING)
@property
def volume(self):