[gnome-music/gnome-3-10] Don't reload the media after the song was paused



commit 6e57277dbc3baa08305444d7c05e69942d504831
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Wed Feb 19 16:03:38 2014 +0100

    Don't reload the media after the song was paused
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=707744

 gnomemusic/player.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 981ee52..18da4d0 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -375,11 +375,11 @@ class Player(GObject.GObject):
         if self.player.get_state(1)[1] != Gst.State.PAUSED:
             self.stop()
 
-        media = self.get_current_media()
-        if not media:
-            return
+            media = self.get_current_media()
+            if not media:
+                return
 
-        self.load(media)
+            self.load(media)
 
         self.player.set_state(Gst.State.PLAYING)
         self._update_position_callback()


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