[gnome-music/wip/jfelder/mpris-fix-seek: 3/7] player: Remove redundant state change



commit c89552569dd49591b51c87fdd8928a60a03b14af
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Oct 18 12:27:05 2018 +0200

    player: Remove redundant state change
    
    Player state is automatically restored to PLAYING once the seek
    operation has been performed.

 gnomemusic/player.py | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 821f721d..cf56283e 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -637,7 +637,6 @@ class Player(GObject.GObject):
         position = self._player.position
         if position >= 5:
             self._player.seek(0)
-            self._player.state = Playback.PLAYING
             return
 
         if self._playlist.previous():


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