Commit 8433e306 authored by Jean-Philippe André's avatar Jean-Philippe André

Lua: release input thread

parent c9e70a5f
......@@ -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;
}
......
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