[gnome-music] player: Don't emit playing-changed when the bus state changes



commit e78781e7181199dfc1bd9f86a8021d41d9c76b6e
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sun Sep 15 22:56:07 2013 +0800

    player: Don't emit playing-changed when the bus state changes
    
    This causes a crash in notification when the current track gets hidden
    on filtering, but when the bus state changes, it doesn't mean that the
    current track changed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708116

 gnomemusic/player.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index 3cd42a8..ffa8917 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -141,7 +141,6 @@ class Player(GObject.GObject):
         #and thus don't cause a message
         #In practice, self means only Gst.State.PLAYING and Gst.State.PAUSED are
         self._sync_playing()
-        self.emit('playing-changed')
 
     def _onBusError(self, bus, message):
         media = self.get_current_media()


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