[vlc-devel] commit: Really make a valid URI for '-' ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Dec 26 19:01:26 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec 26 20:00:58 2009 +0200| [5edb2c25a7b4e6eabd81f4758deea375a409f498] | committer: Rémi Denis-Courmont 

Really make a valid URI for '-'

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5edb2c25a7b4e6eabd81f4758deea375a409f498
---

 src/text/strings.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/text/strings.c b/src/text/strings.c
index 09c4ed1..153ff84 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -1053,6 +1053,8 @@ char *make_URI (const char *path)
 {
     if (path == NULL)
         return NULL;
+    if (!strcmp (path, "-"))
+        return strdup ("fd://0"); // standard input
     if (strstr (path, "://") != NULL)
         return strdup (path); /* Already an URI */
     /* Note: VLC cannot handle URI schemes without double slash after the




More information about the vlc-devel mailing list