Commit cb4433ed authored by Akash Mehrotra's avatar Akash Mehrotra Committed by Rémi Denis-Courmont

LUA:Expose aout

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b743e4aa
...@@ -128,7 +128,22 @@ static int vlclua_get_vout( lua_State *L ) ...@@ -128,7 +128,22 @@ static int vlclua_get_vout( lua_State *L )
lua_pushnil( L ); lua_pushnil( L );
return 1; return 1;
} }
static int vlclua_get_aout( lua_State *L )
{
input_thread_t *p_input= vlclua_get_input_internal( L );
if( p_input )
{
audio_output_t *p_aout = input_GetAout( p_input );
vlc_object_release(p_input);
if(p_aout)
{
vlclua_push_vlc_object( L, (vlc_object_t *)p_aout );
return 1;
}
}
lua_pushnil( L );
return 1;
}
/***************************************************************************** /*****************************************************************************
* *
*****************************************************************************/ *****************************************************************************/
...@@ -138,6 +153,7 @@ static const luaL_Reg vlclua_object_reg[] = { ...@@ -138,6 +153,7 @@ static const luaL_Reg vlclua_object_reg[] = {
{ "libvlc", vlclua_get_libvlc }, { "libvlc", vlclua_get_libvlc },
{ "find", vlclua_object_find }, { "find", vlclua_object_find },
{ "vout", vlclua_get_vout}, { "vout", vlclua_get_vout},
{ "aout", vlclua_get_aout},
{ NULL, NULL } { NULL, NULL }
}; };
......
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