[sushi] audio: stop playing when changine renderer



commit b64c921845b9a89741550c155c2f7ed8ca5736bf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 20 16:18:22 2011 -0400

    audio: stop playing when changine renderer

 src/js/viewers/audio.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index 36342d7..fec47bc 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -68,6 +68,11 @@ AudioRenderer.prototype = {
                                        this._onCoverArtChanged));
     },
 
+    clear : function(file) {
+        this._player.playing = false;
+        delete this._player;
+    },
+
     _ensurePixbufSize : function(cover) {
         let width, height;
 



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