[gnome-music] Set player state to NULL when playlist is set



commit 6a29932b920eed7848c2c8bd3f94c434362b88ee
Author: Arnel A. Borja <kyoushuu yahoo com>
Date:   Thu May 30 23:30:02 2013 +0800

    Set player state to NULL when playlist is set
    
    This ensures that when a new item is selected in the view while the
    player is in the PAUSED state, the new item will be played instead of
    playing the paused item.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701291

 src/player.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index e3f5839..e0868fe 100644
--- a/src/player.js
+++ b/src/player.js
@@ -248,6 +248,7 @@ const Player = new Lang.Class({
     },
 
     setPlaylist: function (type, id, model, iter, field) {
+        this.player.set_state(Gst.State.NULL);
         this.playlist = model;
         this.playlistType = type;
         this.playlistId = id;


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