[gnome-music] Don't set player state to NULL when loading next track



commit a3ec0d33980d6295cd9cb6182e3696a3a22e20bf
Author: Arnel A. Borja <kyoushuu yahoo com>
Date:   Sat Jun 1 07:55:02 2013 +0800

    Don't set player state to NULL when loading next track
    
    Since the loading of next track is called when the player state changed to NULL,
    we shouldn't set it to NULL again.
    
    Signed-off-by: Seif Lotfy <seif lotfy com>

 src/player.js |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 4d05726..d2237ff 100644
--- a/src/player.js
+++ b/src/player.js
@@ -123,7 +123,6 @@ const Player = new Lang.Class({
         if (!this.playlist || !this.currentTrack || !this.playlist.iter_next(this.currentTrack))
             this.currentTrack=null;
         else {
-            this.player.set_state(Gst.State.NULL);
             this.load( this.playlist.get_value( this.currentTrack, this.playlistField));
             this.progressScale.set_value(0);
             this.player.set_state(Gst.State.PLAYING);


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