[gnome-music] Stop play time advances after pause fixes #700191



commit 3d827ae1bc3744093412ce4baff3e9902996ae11
Author: Seif Lotfy <seif lotfy com>
Date:   Sun May 12 22:30:04 2013 +0200

    Stop play time advances after pause
    fixes #700191

 src/player.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 4f89da6..bc6be7d 100644
--- a/src/player.js
+++ b/src/player.js
@@ -179,6 +179,10 @@ const Player = new Lang.Class({
     },
 
     pause: function () {
+        if (this.timeout) {
+            GLib.source_remove(this.timeout);
+            this.timout = null;
+        }
         this.player.set_state(Gst.State.PAUSED);
     },
 


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