Commit 0361794c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udev: drop V4L1 support

parent 566fe8b1
......@@ -409,13 +409,13 @@ static bool is_v4l_legacy (struct udev_device *dev)
static char *v4l_get_mrl (struct udev_device *dev)
{
/* Determine media location */
const char *scheme = "v4l2";
if (is_v4l_legacy (dev))
scheme = "v4l";
return NULL;
const char *node = udev_device_get_devnode (dev);
char *mrl;
if (asprintf (&mrl, "%s://%s", scheme, node) == -1)
if (asprintf (&mrl, "v4l2://%s", node) == -1)
mrl = NULL;
return mrl;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment