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.
#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>
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)