[vlc-commits] lua: stream: Use vlc_stream_NewMRL

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 21 17:49:20 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 20 17:19:26 2017 +0200| [7b0aedd3066e38aae7e0560deab33531e33e1a08] | committer: Hugo Beauzée-Luyssen

lua: stream: Use vlc_stream_NewMRL

This way we can open archive, or other path needing a stream extractor

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

 modules/lua/libs/stream.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/lua/libs/stream.c b/modules/lua/libs/stream.c
index d051a15024..2e8ac96d9f 100644
--- a/modules/lua/libs/stream.c
+++ b/modules/lua/libs/stream.c
@@ -36,6 +36,7 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_meta.h>
+#include <vlc_stream_extractor.h>
 
 #include "../vlc.h"
 #include "../libs.h"
@@ -84,7 +85,7 @@ static int vlclua_stream_new( lua_State *L )
 {
     vlc_object_t * p_this = vlclua_get_this( L );
     const char * psz_url = luaL_checkstring( L, 1 );
-    stream_t *p_stream = vlc_stream_NewURL( p_this, psz_url );
+    stream_t *p_stream = vlc_stream_NewMRL( p_this, psz_url );
     return vlclua_stream_new_inner( L, p_stream );
 }
 



More information about the vlc-commits mailing list