[vlc-commits] vlm: use make_URI() with --vlm-conf

Pierre Ynard git at videolan.org
Tue Apr 5 23:31:59 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Apr  5 23:30:28 2011 +0200| [b497df76db332567f2adbc4fd3da46820d609a1e] | committer: Pierre Ynard

vlm: use make_URI() with --vlm-conf

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

 src/input/vlmshell.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index 1656c28..1273b1b 100644
--- a/src/input/vlmshell.c
+++ b/src/input/vlmshell.c
@@ -49,6 +49,7 @@
 #include <vlc_charset.h>
 #include <vlc_fs.h>
 #include <vlc_sout.h>
+#include <vlc_url.h>
 #include "../stream_output/stream_output.h"
 #include "../libvlc.h"
 
@@ -522,9 +523,11 @@ error:
     return VLC_EGENERIC;
 }
 
-static int ExecuteLoad( vlm_t *p_vlm, const char *psz_url, vlm_message_t **pp_status )
+static int ExecuteLoad( vlm_t *p_vlm, const char *psz_path, vlm_message_t **pp_status )
 {
+    char *psz_url = make_URI( psz_path, NULL );
     stream_t *p_stream = stream_UrlNew( p_vlm, psz_url );
+    free( psz_url );
     uint64_t i_size;
     char *psz_buffer;
 



More information about the vlc-commits mailing list