[pinpoint] Use the correct arguments for gst_element_factory_make()



commit 5ca09eb9d4145b89f1ad34a62f288efe25f5ed29
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Aug 4 11:22:55 2011 +0100

    Use the correct arguments for gst_element_factory_make()
    
    The function takes two strings, not string + GError.

 pp-clutter.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pp-clutter.c b/pp-clutter.c
index 6e9d3ed..3fe955a 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -959,7 +959,6 @@ setup_camera (PinPointRenderer *renderer,
   GstElement       *sink;
   GstCaps          *caps;
   gboolean          result;
-  GError           *error = NULL;
 
   if (texture)
     {
@@ -978,11 +977,10 @@ setup_camera (PinPointRenderer *renderer,
   /* Set up pipeline */
   pipeline = gst_pipeline_new (NULL);
 
-  src = gst_element_factory_make ("v4l2src", &error);
+  src = gst_element_factory_make ("v4l2src", NULL);
   if (src == NULL)
     {
-      g_critical ("Failed to create v4l2src element: %s", error->message);
-      g_clear_error (&error);
+      g_critical ("Failed to create v4l2src element");
       g_object_unref (pipeline);
       return;
     }



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