From d7fbb72c72ff2df3fba72c7a1483816e73567e67 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Sat, 8 Aug 2015 12:52:36 +0100 Subject: [PATCH] examples: opencv: remove unnecessary setting of a property "/dev/video0" is the default device of v4l2src, setting it to this is redundant. --- tests/examples/opencv/gstfacedetect_test.c | 3 --- tests/examples/opencv/gsthanddetect_test.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/tests/examples/opencv/gstfacedetect_test.c b/tests/examples/opencv/gstfacedetect_test.c index 109ae28..ffcb5df 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 32463b5..1cc9616 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 = -- 2.7.4