[vlc-commits] lua extensions: open a URI, not a filepath

Jean-Baptiste Kempf git at videolan.org
Wed Jan 28 17:38:36 CET 2015


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan 28 00:48:00 2015 +0100| [70c1a68dbd019846992521c01356b13f09d88949] | committer: Jean-Baptiste Kempf

lua extensions: open a URI, not a filepath

Close #13752

(cherry picked from commit 916c380e2bf648968af243523a242ff83c048558)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/lua/extension.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/extension.c b/modules/lua/extension.c
index 5958af1..b047de0 100644
--- a/modules/lua/extension.c
+++ b/modules/lua/extension.c
@@ -298,7 +298,7 @@ int ScanLuaCallback( vlc_object_t *p_this, const char *psz_filename,
     }
     else
     {
-        psz_script = strdup( psz_filename );
+        psz_script = vlc_path2uri( psz_filename, "file" );
         if( !psz_script )
             return 0;
     }



More information about the vlc-commits mailing list