diff --git a/tests/examples/opencv/gstfacedetect_test.c b/tests/examples/opencv/gstfacedetect_test.c index 109ae28f0c..ffcb5dfbf9 100644 --- a/tests/examples/opencv/gstfacedetect_test.c +++ b/tests/examples/opencv/gstfacedetect_test.c @@ -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 = diff --git a/tests/examples/opencv/gsthanddetect_test.c b/tests/examples/opencv/gsthanddetect_test.c index 32463b5afd..1cc9616f76 100644 --- a/tests/examples/opencv/gsthanddetect_test.c +++ b/tests/examples/opencv/gsthanddetect_test.c @@ -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 =