[cheese] Errors in effect files no longer fatal



commit 9a5720abaa6accbfd8f54ea7af63122db21a2ebe
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date:   Mon Aug 2 01:10:32 2010 +0530

    Errors in effect files no longer fatal

 libcheese/cheese-camera.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 1a9826a..095da2b 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -750,11 +750,14 @@ GstElement*
 cheese_camera_element_from_effect (CheeseCamera *camera, CheeseEffect *effect)
 {
   char       *effects_pipeline_desc;
+  char       *name;
   GstElement *effect_filter;
   GError     *err = NULL;
   char       *effect_desc;
 
-  g_object_get (G_OBJECT (effect), "pipeline_desc", &effect_desc, NULL);
+  g_object_get (G_OBJECT (effect),
+                "pipeline_desc", &effect_desc,
+                "name", &name, NULL);
 
   effects_pipeline_desc = g_strconcat ("ffmpegcolorspace ! ",
                                        effect_desc,
@@ -764,7 +767,7 @@ cheese_camera_element_from_effect (CheeseCamera *camera, CheeseEffect *effect)
   if (!effect_filter || (err != NULL))
   {
     g_error_free (err);
-    g_error ("ERROR effect_filter\n");
+    g_warning ("Error with effect filter %s. Ignored", name);
   }
   g_free (effects_pipeline_desc);
 



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