}
/* Load and run the script(s) */
- if( luaL_dofile( L, psz_filename ) )
+ if( vlclua_dofile( VLC_OBJECT(p_demux), L, psz_filename ) )
{
msg_Warn( p_demux, "Error loading script %s: %s", psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
intf_sys_t *p_sys = p_intf->p_sys;
lua_State *L = p_sys->L;
- if( luaL_dofile( L, p_sys->psz_filename ) )
+ if( vlclua_dofile( VLC_OBJECT(p_intf), L, p_sys->psz_filename ) )
{
msg_Err( p_intf, "Error loading script %s: %s", p_sys->psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
lua_setglobal( L, luafunction );
/* Load and run the script(s) */
- if( luaL_dofile( L, psz_filename ) )
+ if( vlclua_dofile( p_this, L, psz_filename ) )
{
msg_Warn( p_this, "Error loading script %s: %s", psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
p_sys->psz_filename );
goto error;
}
- if( luaL_dofile( L, p_sys->psz_filename ) )
+ if( vlclua_dofile( VLC_OBJECT(p_sd), L, p_sys->psz_filename ) )
{
msg_Err( p_sd, "Error loading script %s: %s", p_sys->psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
/* Create a new lua thread */
lua_State *L = luaL_newstate();
- if( luaL_dofile( L, p_sys->psz_filename ) )
+ if( vlclua_dofile( VLC_OBJECT(p_sd), L, p_sys->psz_filename ) )
{
msg_Err( p_sd, "Error loading script %s: %s", p_sys->psz_filename,
lua_tostring( L, -1 ) );