examples: opencv: remove unnecessary setting of a property
authorLuis de Bethencourt <luis@debethencourt.com>
Sat, 8 Aug 2015 11:52:36 +0000 (12:52 +0100)
committerLuis de Bethencourt <luis@debethencourt.com>
Sat, 8 Aug 2015 11:52:38 +0000 (12:52 +0100)
"/dev/video0" is the default device of v4l2src, setting it to this is
redundant.

tests/examples/opencv/gstfacedetect_test.c
tests/examples/opencv/gsthanddetect_test.c

index 109ae28..ffcb5df 100644 (file)
@@ -122,8 +122,6 @@ main (gint argc, gchar ** argv)
   GstBus *bus;
   gchar *uri;
 
-  const gchar *video_device = "/dev/video0";
-
   if (argc < 2) {
     fprintf (stderr, "oops, please give a file to play\n");
     return -1;
@@ -159,7 +157,6 @@ main (gint argc, gchar ** argv)
 
   /* set values */
   g_object_set (G_OBJECT (playbin), "uri", uri, NULL);
-  g_object_set (G_OBJECT (v4l2src), "device", video_device, NULL);
 
   /* set caps */
   caps =
index 32463b5..1cc9616 100644 (file)
@@ -108,8 +108,6 @@ main (gint argc, gchar ** argv)
   GstBus *bus;
   gchar *uri;
 
-  const gchar *video_device = "/dev/video0";
-
   if (argc < 2) {
     fprintf (stderr, "oops, please give a file to play\n");
     return -1;
@@ -144,7 +142,6 @@ main (gint argc, gchar ** argv)
 
   /* set values */
   g_object_set (G_OBJECT (playbin), "uri", uri, NULL);
-  g_object_set (G_OBJECT (v4l2src), "device", video_device, NULL);
 
   /* set caps */
   caps =