[gnome-music/wip/mschraal/player-factor-out-gstreamer] smoothscale: Optimization fails



commit 10a0211329e1d8c729815585157af54775fa7601
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 17 20:44:43 2018 +0100

    smoothscale: Optimization fails
    
    It may take a few state changes before we can get a duration

 gnomemusic/widgets/smoothscale.py | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gnomemusic/widgets/smoothscale.py b/gnomemusic/widgets/smoothscale.py
index 4316538..98f7706 100644
--- a/gnomemusic/widgets/smoothscale.py
+++ b/gnomemusic/widgets/smoothscale.py
@@ -85,9 +85,6 @@ class SmoothScale(Gtk.Scale):
     def _on_state_change(self, klass, arguments):
         state = self._player.state
 
-        if self._previous_state == state:
-            return
-
         self._previous_state = state
 
         if state == Playback.STOPPED:


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