[vlc-devel] commit: libvlc_vlm_release added (Filippo Carone )
git version control
git at videolan.org
Mon Apr 7 23:27:34 CEST 2008
vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Mon Apr 7 23:27:22 2008 +0200| [d6339e0bfb17513dc877a3ccef52769678e68e4d]
libvlc_vlm_release added
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d6339e0bfb17513dc877a3ccef52769678e68e4d
---
include/vlc/libvlc_vlm.h | 9 +++++++++
src/control/vlm.c | 10 ++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/include/vlc/libvlc_vlm.h b/include/vlc/libvlc_vlm.h
index 80ca9ff..a999ff8 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 0e794e4..7ea6086 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,
More information about the vlc-devel
mailing list