[vlc-devel] commit: Lua: release input thread ( Jean-Philippe André )

git version control git at videolan.org
Sun Nov 15 19:25:17 CET 2009


vlc | branch: 1.0-bugfix | Jean-Philippe André <jpeg at endymion.via.ecp.fr> | Wed Nov 11 19:05:49 2009 +0100| [3e98ceee37754647c3a6d44fdd69ac4f83bb86af] | committer: Rémi Duraffort 

Lua: release input thread
(cherry picked from commit 8433e306f6f1f0e00a7d0678fbd098cda74eb7b4)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 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