[sushi] gst: stop playing when changing renderer



commit 8a81fd8b0d8cee6d6572a97ac93e5c5889db3c13
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 20 16:18:45 2011 -0400

    gst: stop playing when changing renderer

 src/js/viewers/gst.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/js/viewers/gst.js b/src/js/viewers/gst.js
index 6af6608..2b69c86 100644
--- a/src/js/viewers/gst.js
+++ b/src/js/viewers/gst.js
@@ -25,6 +25,10 @@ GstRenderer.prototype = {
         return this._video;
     },
 
+    clear : function() {
+        this._video.playing = false;
+    },
+
     _createVideo : function(file) {
         this._video =
             new ClutterGst.VideoTexture({ "sync-size": false });



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