[cheese/camerabin2: 2/13] camerabin2: video filter on camera_source applies to all modes



commit 27377a3f962059763f62f3a3e75c05a9ca41e6b5
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date:   Wed Jul 13 19:38:19 2011 +0300

    camerabin2: video filter on camera_source applies to all modes
    
    If the effect is applied on camera_source, the effect will be
    available in viewfinder and image/video capture modes.

 libcheese/cheese-camera.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 97713ab..b10b0ce 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1226,11 +1226,7 @@ cheese_camera_setup (CheeseCamera *camera, const char *id, GError **error)
     return;
   }
 
-  //raluca: TODO: set video-filter, preview-filter, image-filter?
-  g_object_set (G_OBJECT (priv->camerabin), "viewfinder-filter", priv->video_filter_bin, NULL);
-  //g_object_set (G_OBJECT (priv->camerabin), "video-filter", priv->video_filter_bin, NULL);
-  //g_object_set (G_OBJECT (priv->camerabin), "preview-filter", priv->video_filter_bin, NULL);
-  //g_object_set (G_OBJECT (priv->camerabin), "image-filter", priv->video_filter_bin, NULL);
+  g_object_set (G_OBJECT (priv->camera_source), "video-source-filter", priv->video_filter_bin, NULL);
 
   priv->bus = gst_element_get_bus (priv->camerabin);
   gst_bus_add_signal_watch (priv->bus);



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