[gnome-music] player: Prevent pause when seeking



commit 466a4c6f1af30d98f8d84023dc35db3003ebeebf
Author: theawless <theawless gmail com>
Date:   Thu Feb 16 17:53:23 2017 +0530

    player: Prevent pause when seeking
    
    Removed lastState and prevent pause on seekbar button press event.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776668

 gnomemusic/player.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index ae0577e..201f227 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -109,7 +109,6 @@ class Player(GObject.GObject):
         self.playlistField = None
         self.currentTrack = None
         self.currentTrackUri = None
-        self._lastState = Gst.State.PAUSED
         scale = parent_window.get_scale_factor()
         self.cache = AlbumArtCache(scale)
         self._loading_icon_surface = DefaultIcon(scale).get(
@@ -831,8 +830,6 @@ class Player(GObject.GObject):
     def _on_progress_scale_button_released(self, scale, data):
         self.on_progress_scale_change_value(self.progressScale)
         self._update_position_callback()
-        self.player.set_state(self._lastState)
-        self._update_timeout()
         return False
 
     def _on_progress_value_changed(self, widget):
@@ -842,8 +839,6 @@ class Player(GObject.GObject):
 
     @log
     def _on_progress_scale_event(self, scale, data):
-        self._lastState = self.player.get_state(1)[1]
-        self.player.set_state(Gst.State.PAUSED)
         self._remove_timeout()
         return False
 


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