Commit a1036e1e authored by Antoine Cellerier's avatar Antoine Cellerier

Fix horrible typo and vlc.misc.should_die() function.

parent 8bf00f1b
...@@ -152,7 +152,7 @@ int Open_LuaIntf( vlc_object_t *p_this ) ...@@ -152,7 +152,7 @@ int Open_LuaIntf( vlc_object_t *p_this )
bool b_config_set = false; bool b_config_set = false;
if( !psz_name ) psz_name = strdup( "dummy" ); if( !psz_name ) psz_name = strdup( "dummy" );
p_intf->p_sys = (intf_sys_t*)malloc( sizeof(intf_sys_t*) ); p_intf->p_sys = (intf_sys_t*)malloc( sizeof(intf_sys_t) );
if( !p_intf->p_sys ) if( !p_intf->p_sys )
{ {
free( psz_name ); free( psz_name );
......
...@@ -197,7 +197,7 @@ static int vlclua_mwait( lua_State *L ) ...@@ -197,7 +197,7 @@ static int vlclua_mwait( lua_State *L )
static int vlclua_intf_should_die( lua_State *L ) static int vlclua_intf_should_die( lua_State *L )
{ {
intf_thread_t *p_intf = (intf_thread_t*)vlclua_get_this( L ); intf_thread_t *p_intf = (intf_thread_t*)vlclua_get_this( L );
lua_pushboolean( L, !vlc_object_alive( p_intf ) ); lua_pushboolean( L, p_intf->p_sys->exiting );
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment