mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 06:38:19 +00:00
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:
parent
3a765e0805
commit
d7fbb72c72
2 changed files with 0 additions and 6 deletions
|
@ -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 =
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue