diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2015-08-08 12:52:36 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis@debethencourt.com> | 2015-08-08 12:52:38 +0100 |
commit | d7fbb72c72ff2df3fba72c7a1483816e73567e67 (patch) | |
tree | cf0a67ad94627da8dd6a4c6e17b22405c5f71ba1 /tests | |
parent | 3a765e0805688847e36863f5ea4b30c4e19ae6d3 (diff) | |
download | gstreamer-plugins-bad-d7fbb72c72ff2df3fba72c7a1483816e73567e67.tar.gz |
examples: opencv: remove unnecessary setting of a property
"/dev/video0" is the default device of v4l2src, setting it to this is
redundant.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/opencv/gstfacedetect_test.c | 3 | ||||
-rw-r--r-- | tests/examples/opencv/gsthanddetect_test.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/tests/examples/opencv/gstfacedetect_test.c b/tests/examples/opencv/gstfacedetect_test.c index 109ae28f0..ffcb5dfbf 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 32463b5af..1cc9616f7 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 = |