Add playback states to GStreamer

This commit is contained in:
Thomas Adamcik 2010-02-07 04:58:45 +01:00
parent 9a268721e1
commit 58e636838b

View File

@ -1,5 +1,7 @@
import logging
import gst
from mopidy.backends import BaseBackend, BasePlaybackController
logger = logging.getLogger(u'backends.gstreamer')
@ -11,5 +13,9 @@ class GStreamerBackend(BaseBackend):
self.playback = GStreamerPlaybackController(self)
class GStreamerPlaybackController(BasePlaybackController):
PAUSED = gst.STATE_PAUSED
PLAYING = gst.STATE_PLAYING
STOPPED = gst.STATE_NULL
def __init__(self, backend):
super(GStreamerPlaybackController, self).__init__(backend)