[snappy] snappy: switch video sink to autocluttersink
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] snappy: switch video sink to autocluttersink
- Date: Thu, 24 May 2012 12:37:10 +0000 (UTC)
commit 340b1c3ff062a85deeec0f979848e324ee58529b
Author: Luis de Bethencourt <luis debethencourt com>
Date: Thu May 24 13:36:04 2012 +0100
snappy: switch video sink to autocluttersink
src/snappy.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/snappy.c b/src/snappy.c
index c607787..bb485df 100644
--- a/src/snappy.c
+++ b/src/snappy.c
@@ -195,7 +195,11 @@ main (int argc, char *argv[])
/* Gstreamer engine */
engine = g_new (GstEngine, 1);
- sink = gst_element_factory_make ("cluttersink", "cluttersink");
+ sink = gst_element_factory_make ("autocluttersink", "cluttersink");
+ if (sink == NULL) {
+ GST_DEBUG ("autocluttersink not found, falling back to cluttersink\n");
+ sink = gst_element_factory_make ("cluttersink", "cluttersink");
+ }
g_object_set (G_OBJECT (sink), "texture", CLUTTER_TEXTURE (video_texture),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]