camerabin2: v4l2camerasrc: Remove platform specific code
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 26 Nov 2010 01:05:39 +0000 (22:05 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 8 Dec 2010 18:38:27 +0000 (15:38 -0300)
Remove platform specific code

gst/camerabin2/gstv4l2camerasrc.c

index 07a068e6ffc19095fb5d7e982c5f2b6f2d4d65d9..8d3f7eb82284595c6fe94cfbdf22019ba29111f9 100644 (file)
@@ -41,9 +41,6 @@
 /* Using "bilinear" as default zoom method */
 #define CAMERABIN_DEFAULT_ZOOM_METHOD 1
 
-/* FIXME: this is v4l2camsrc specific */
-#define DEFAULT_V4L2CAMSRC_DRIVER_NAME "omap3cam"
-
 //GST_DEBUG_CATEGORY (v4l2_camera_src_debug);
 //#define GST_CAT_DEFAULT v4l2_camera_src_debug
 
@@ -269,21 +266,6 @@ gst_v4l2_camera_src_construct_pipeline (GstBaseCameraSrc * bcamsrc,
   g_object_set (G_OBJECT (queue), "leaky", 2, "max-size-buffers", 1, NULL);
 #endif
 
-  /* Set default "driver-name" for v4l2camsrc if not set */
-  /* FIXME: v4l2camsrc specific */
-  {
-    gchar *driver_name = NULL;
-    if (g_object_class_find_property (G_OBJECT_GET_CLASS (self->src_vid_src),
-            "driver-name")) {
-      g_object_get (G_OBJECT (self->src_vid_src), "driver-name",
-          &driver_name, NULL);
-      if (!driver_name) {
-        g_object_set (G_OBJECT (self->src_vid_src), "driver-name",
-            DEFAULT_V4L2CAMSRC_DRIVER_NAME, NULL);
-      }
-    }
-  }
-
   ret = TRUE;
 done:
   return ret;