[vlc-devel] commit: Lua: release input thread ( Jean-Philippe André )
git version control
git at videolan.org
Wed Nov 11 19:23:17 CET 2009
vlc | branch: master | Jean-Philippe André <jpeg at endymion.via.ecp.fr> | Wed Nov 11 19:05:49 2009 +0100| [8433e306f6f1f0e00a7d0678fbd098cda74eb7b4] | committer: Jean-Philippe André
Lua: release input thread
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8433e306f6f1f0e00a7d0678fbd098cda74eb7b4
---
modules/misc/lua/libs/input.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/libs/input.c b/modules/misc/lua/libs/input.c
index 20d7c12..fee0146 100644
--- a/modules/misc/lua/libs/input.c
+++ b/modules/misc/lua/libs/input.c
@@ -87,6 +87,8 @@ static int vlclua_is_playing( lua_State *L )
{
input_thread_t * p_input = vlclua_get_input_internal( L );
lua_pushboolean( L, !!p_input );
+ if( p_input )
+ vlc_object_release( p_input );
return 1;
}
@@ -130,6 +132,8 @@ static int vlclua_input_stats( lua_State *L )
#undef STATS_INT
#undef STATS_FLOAT
}
+ if( p_input )
+ vlc_object_release( p_input );
return 1;
}
More information about the vlc-devel
mailing list