]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/libs/stream.c
Add a global documentation for all the Lua modules.
[vlc] / modules / misc / lua / libs / stream.c
index 5e8cb81e1463e5a8c90c3a1c77a5b312fc10e0ba..49e48b3c2dffd64b57222bb684f421051d0bfdde 100644 (file)
@@ -63,7 +63,7 @@ static int vlclua_stream_new( lua_State *L )
     vlc_object_t * p_this = vlclua_get_this( L );
     stream_t * p_stream;
     const char * psz_url;
-    psz_url = luaL_checkstring( L, -1 );
+    psz_url = luaL_checkstring( L, 1 );
     p_stream = stream_UrlNew( p_this, psz_url );
     if( !p_stream )
         return luaL_error( L, "Error when opening url: `%s'", psz_url );