[sushi] gst: stop playing when changing renderer
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] gst: stop playing when changing renderer
- Date: Wed, 20 Apr 2011 20:20:12 +0000 (UTC)
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]