[vlc-devel] commit: Fix horrible typo and vlc.misc.should_die() function. ( Antoine Cellerier )

git version control git at videolan.org
Mon Jan 19 22:29:16 CET 2009


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Mon Jan 19 22:24:05 2009 +0100| [a1036e1e5834d0969fff42788024d1a7d5db36ac] | committer: Antoine Cellerier 

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

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

 modules/misc/lua/intf.c      |    2 +-
 modules/misc/lua/libs/misc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/misc/lua/intf.c b/modules/misc/lua/intf.c
index fb4194b..c25e27b 100644
--- a/modules/misc/lua/intf.c
+++ b/modules/misc/lua/intf.c
@@ -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 );
diff --git a/modules/misc/lua/libs/misc.c b/modules/misc/lua/libs/misc.c
index 8a21cce..b3ecbdf 100644
--- a/modules/misc/lua/libs/misc.c
+++ b/modules/misc/lua/libs/misc.c
@@ -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;
 }
 




More information about the vlc-devel mailing list