[gnome-music] Don't stop playback if next/previous song cannot be played



commit a5c9872c952cdf1114ecd470782f14f443745baa
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Wed Apr 24 11:18:30 2013 +0200

    Don't stop playback if next/previous song cannot be played

 src/player.js |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 67862db..c6f1c5c 100644
--- a/src/player.js
+++ b/src/player.js
@@ -178,7 +178,6 @@ const Player = new Lang.Class({
         if (this.currentTrack)
             this.prevTrack = this.currentTrack.copy()
         if (!this.playlist || !this.currentTrack || !this.playlist.iter_next(this.currentTrack)){
-            this.stop();
             if (this.prevTrack) {
                 this.currentTrack = this.prevTrack.copy();
             } else {
@@ -192,7 +191,6 @@ const Player = new Lang.Class({
 
     playPrevious: function () {
         if (!this.playlist || !this.currentTrack || !this.playlist.iter_previous(this.currentTrack)){
-            this.stop();
             if (!this.playlist) {
                 this.currentTrack = null;
             } else {


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