From d6339e0bfb17513dc877a3ccef52769678e68e4d Mon Sep 17 00:00:00 2001 From: Filippo Carone Date: Mon, 7 Apr 2008 23:27:22 +0200 Subject: [PATCH] libvlc_vlm_release added --- include/vlc/libvlc_vlm.h | 9 +++++++++ src/control/vlm.c | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/include/vlc/libvlc_vlm.h b/include/vlc/libvlc_vlm.h index 80ca9ff8be..a999ff8540 100644 --- a/include/vlc/libvlc_vlm.h +++ b/include/vlc/libvlc_vlm.h @@ -38,6 +38,15 @@ extern "C" { * @{ */ + +/** + * Release the vlm instance related to the given libvlc_instance_t + * + * \param p_instance the instance + * \param p_e an initialized exception pointer + */ +VLC_PUBLIC_API void libvlc_vlm_release( libvlc_instance_t *, libvlc_exception_t * ); + /** * Add a broadcast, with one input. * diff --git a/src/control/vlm.c b/src/control/vlm.c index 0e794e4917..7ea608667b 100644 --- a/src/control/vlm.c +++ b/src/control/vlm.c @@ -118,6 +118,16 @@ static int libvlc_vlm_init( libvlc_instance_t *p_instance, } while(0) #define VLM(p) VLM_RET(p,) +void libvlc_vlm_release( libvlc_instance_t *p_instance, libvlc_exception_t *p_exception) +{ + vlm_t *p_vlm; + + VLM(p_vlm); + + vlm_Delete( p_vlm ); +} + + void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance, char *psz_name, char *psz_input, char *psz_output, int i_options, char **ppsz_options, -- 2.39.2