summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2014-05-31 12:39:26 +0100
committerLionel Landwerlin <llandwerlin@gmail.com>2014-06-07 11:05:03 +0100
commit95c7751a7c4ef44fc1c2345e75e8cec10385fb4d (patch)
tree7dea2a48037fd5655d1fdd58a6a868286622b573 /examples
parent0287a4afa3f1e611c12ea6cb8225e2f2cdb05f0d (diff)
downloadclutter-gst-95c7751a7c4ef44fc1c2345e75e8cec10385fb4d.tar.gz
VAAPI DEBUG
Diffstat (limited to 'examples')
-rw-r--r--examples/simple-player.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/simple-player.js b/examples/simple-player.js
index 9bd38d7..2d2eedf 100644
--- a/examples/simple-player.js
+++ b/examples/simple-player.js
@@ -18,8 +18,10 @@
*/
const Lang = imports.lang;
+const Mainloop = imports.mainloop;
const Clutter = imports.gi.Clutter;
const ClutterGst = imports.gi.ClutterGst;
+const Gst = imports.gi.Gst;
if (ARGV.length < 1)
throw "Need 1 argument : simple-player.js videofile ";
@@ -52,4 +54,12 @@ stage.add_child(actor);
stage.show();
+Mainloop.timeout_add(1000, function() {
+ log(player.get_pipeline());
+ Gst.debug_bin_to_dot_file_with_ts(player.get_pipeline(),
+ Gst.DebugGraphDetails.ALL,
+ "plop");
+ log('dumped.');
+});
+
Clutter.main();