[vlc-commits] lib: vlm: inline one function
Rémi Denis-Courmont
git at videolan.org
Mon May 15 21:32:38 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 15 21:13:28 2017 +0300| [9f7f67434bc18b2b85678a460ca57459fe51585e] | committer: Rémi Denis-Courmont
lib: vlm: inline one function
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f7f67434bc18b2b85678a460ca57459fe51585e
---
lib/vlm.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/vlm.c b/lib/vlm.c
index 52aad851ea..431acdd939 100644
--- a/lib/vlm.c
+++ b/lib/vlm.c
@@ -101,7 +101,7 @@ static int VlmEvent( vlc_object_t *p_this, const char * name,
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;
if( !p_instance->libvlc_vlm.p_vlm )
@@ -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,
"intf-event", VlmEvent,
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 );
}
return VLC_SUCCESS;
}
-void libvlc_vlm_release( libvlc_instance_t *p_instance )
-{
- libvlc_vlm_release_internal( p_instance );
-}
-
#define VLM_RET(p,ret) do { \
if( libvlc_vlm_init( p_instance ) ) \
return (ret); \
More information about the vlc-commits
mailing list