[gnome-music/wip/mschraal/player-factor-out-gstreamer: 18/56] fix imports & PlaybackState rename



commit 306daedeaa6f8514644e7e18d399eff0f601e453
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Feb 9 08:10:14 2018 +0100

    fix imports & PlaybackState rename

 gnomemusic/mpris.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index a282b2a..d5cda0c 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -25,7 +25,8 @@
 
 import codecs
 
-from gnomemusic.player import PlaybackStatus, RepeatType
+from gnomemusic.gstplayer import Playback
+from gnomemusic.player import RepeatType
 from gnomemusic.grilo import grilo
 from gnomemusic.playlists import Playlists
 from gnomemusic.utils import View
@@ -242,9 +243,9 @@ class MediaPlayer2Service(Server):
     @log
     def _get_playback_status(self):
         state = self.player.get_playback_status()
-        if state == PlaybackStatus.PLAYING:
+        if state == Playback.PLAYING:
             return 'Playing'
-        elif state == PlaybackStatus.PAUSED:
+        elif state == Playback.PAUSED:
             return 'Paused'
         else:
             return 'Stopped'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]