[cheese] cheese-camera: Fix creation of effects previews



commit 170602003e183d180f7584cd07f8fa6be28624ae
Author: Luciana Fujii Pontello <luciana fujii eti br>
Date:   Tue Apr 9 00:49:31 2013 -0300

    cheese-camera: Fix creation of effects previews
    
    Since many previews are created, with many cluttersinks, we can't name
    the cluttersinks all the same. Passing NULL as the name of the element
    will let gstreamer choose the name.

 libcheese/cheese-camera.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 84c1acf..a78affd 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -974,7 +974,7 @@ cheese_camera_connect_effect_texture (CheeseCamera *camera, CheeseEffect *effect
 
   effect_filter = cheese_camera_element_from_effect (camera, effect);
 
-  display_element = gst_element_factory_make ("cluttersink", "cluttersink");
+  display_element = gst_element_factory_make ("cluttersink", NULL);
   g_object_set (G_OBJECT (display_element), "async", FALSE, "texture", texture, NULL);
 
   gst_bin_add_many (GST_BIN (priv->video_filter_bin), control_valve, effect_filter, display_queue, 
display_element, NULL);


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