"/dev/video0" is the default device of v4l2src, setting it to this is
redundant.
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;
/* set values */
g_object_set (G_OBJECT (playbin), "uri", uri, NULL);
- g_object_set (G_OBJECT (v4l2src), "device", video_device, NULL);
/* set caps */
caps =
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;
/* set values */
g_object_set (G_OBJECT (playbin), "uri", uri, NULL);
- g_object_set (G_OBJECT (v4l2src), "device", video_device, NULL);
/* set caps */
caps =