[gnome-music/gnome-3-24] player: Fix stuttering when seeking



commit 2434a35c5f85451345ed7d4d6034cb51805bfdba
Author: theawless <theawless gmail com>
Date:   Mon Mar 27 15:49:34 2017 +0530

    player: Fix stuttering when seeking
    
    Old progress scale value was not updating causing minor stuttering.
    Update its value when a seek is finished.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776668

 gnomemusic/player.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 76a44a3..1c72d76 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -835,6 +835,7 @@ class Player(GObject.GObject):
         round_digits = self.progressScale.get_property('round-digits')
         if self._old_progress_scale_value != round(value, round_digits):
             self.on_progress_scale_change_value(self.progressScale)
+            self._old_progress_scale_value = round(value, round_digits)
         return False
 
     def _on_progress_scale_seek(self, scale, scroll_type, value):


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