examples: opencv: remove unnecessary setting of a property

"/dev/video0" is the default device of v4l2src, setting it to this is
redundant.
This commit is contained in:
Luis de Bethencourt 2015-08-08 12:52:36 +01:00
parent 3a765e0805
commit d7fbb72c72
2 changed files with 0 additions and 6 deletions

View 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 =

View 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 =