Commit 5edb2c25 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Really make a valid URI for '-'

parent eeff52c8
...@@ -1053,6 +1053,8 @@ char *make_URI (const char *path) ...@@ -1053,6 +1053,8 @@ char *make_URI (const char *path)
{ {
if (path == NULL) if (path == NULL)
return NULL; return NULL;
if (!strcmp (path, "-"))
return strdup ("fd://0"); // standard input
if (strstr (path, "://") != NULL) if (strstr (path, "://") != NULL)
return strdup (path); /* Already an URI */ return strdup (path); /* Already an URI */
/* Note: VLC cannot handle URI schemes without double slash after the /* Note: VLC cannot handle URI schemes without double slash after the
......
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