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



commit 9f63296a842a8a398e2524fc96f83e88d1be8ff9
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]