]> git.sesse.net Git - vlc/commitdiff
Fix horrible typo and vlc.misc.should_die() function.
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 19 Jan 2009 21:24:05 +0000 (22:24 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 19 Jan 2009 21:24:26 +0000 (22:24 +0100)
modules/misc/lua/intf.c
modules/misc/lua/libs/misc.c

index fb4194b044a1c481cd9939d0d9cdd9c3a98b7492..c25e27be1d6aac34e044d3f10aa83f08b2996274 100644 (file)
@@ -152,7 +152,7 @@ int Open_LuaIntf( vlc_object_t *p_this )
     bool b_config_set = false;
     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 )
     {
         free( psz_name );
index 8a21cceeebc5d2b465b56a7d9acde6a8187209ad..b3ecbdf7cc81a766dd5bf0fe7f6fda458562c3d5 100644 (file)
@@ -197,7 +197,7 @@ static int vlclua_mwait( lua_State *L )
 static int vlclua_intf_should_die( lua_State *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;
 }