Commit 9f7f6743 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lib: vlm: inline one function

parent 8f67aeff
...@@ -101,7 +101,7 @@ static int VlmEvent( vlc_object_t *p_this, const char * name, ...@@ -101,7 +101,7 @@ static int VlmEvent( vlc_object_t *p_this, const char * name,
return 0; return 0;
} }
static void libvlc_vlm_release_internal( libvlc_instance_t *p_instance ) void libvlc_vlm_release( libvlc_instance_t *p_instance )
{ {
vlm_t *p_vlm = p_instance->libvlc_vlm.p_vlm; vlm_t *p_vlm = p_instance->libvlc_vlm.p_vlm;
if( !p_instance->libvlc_vlm.p_vlm ) if( !p_instance->libvlc_vlm.p_vlm )
...@@ -141,18 +141,13 @@ static int libvlc_vlm_init( libvlc_instance_t *p_instance ) ...@@ -141,18 +141,13 @@ static int libvlc_vlm_init( libvlc_instance_t *p_instance )
var_AddCallback( (vlc_object_t *)p_instance->libvlc_vlm.p_vlm, var_AddCallback( (vlc_object_t *)p_instance->libvlc_vlm.p_vlm,
"intf-event", VlmEvent, "intf-event", VlmEvent,
p_instance->libvlc_vlm.p_event_manager ); p_instance->libvlc_vlm.p_event_manager );
p_instance->libvlc_vlm.pf_release = libvlc_vlm_release_internal; p_instance->libvlc_vlm.pf_release = libvlc_vlm_release;
libvlc_retain( p_instance ); libvlc_retain( p_instance );
} }
return VLC_SUCCESS; return VLC_SUCCESS;
} }
void libvlc_vlm_release( libvlc_instance_t *p_instance )
{
libvlc_vlm_release_internal( p_instance );
}
#define VLM_RET(p,ret) do { \ #define VLM_RET(p,ret) do { \
if( libvlc_vlm_init( p_instance ) ) \ if( libvlc_vlm_init( p_instance ) ) \
return (ret); \ return (ret); \
......
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