]> git.sesse.net Git - vlc/commitdiff
lua extensions: open a URI, not a filepath
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 27 Jan 2015 23:48:00 +0000 (00:48 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 27 Jan 2015 23:48:19 +0000 (00:48 +0100)
Close #13752

modules/lua/extension.c

index 5958af15e41f8db28068e1961317f0ed018203cf..b047de08991e32d50b1c1c13c0528cba68057abd 100644 (file)
@@ -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;
     }