Commit 653b7892 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

udev: fix disc device node encoding

Contrary to V4L2, the CDDA, DVD and BD plugins use the decoded file
path. In practice, this was a very minor problem as device node paths
normally only contain lower case ASCII, digits and the forward slash.
parent 892a2b1a
......@@ -28,6 +28,7 @@
#include <vlc_common.h>
#include <vlc_services_discovery.h>
#include <vlc_plugin.h>
#include <vlc_url.h>
#include <search.h>
#include <poll.h>
#include <errno.h>
......@@ -562,11 +563,7 @@ static char *disc_get_mrl (struct udev_device *dev)
return NULL;
val = udev_device_get_devnode (dev);
char *mrl;
if (asprintf (&mrl, "%s://%s", scheme, val) == -1)
mrl = NULL;
return mrl;
return make_URI (val, scheme);
}
static char *disc_get_name (struct udev_device *dev)
......
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