]> git.sesse.net Git - vlc/commitdiff
libvlc_vlm_release added
authorFilippo Carone <littlejohn@videolan.org>
Mon, 7 Apr 2008 21:27:22 +0000 (23:27 +0200)
committerFilippo Carone <littlejohn@videolan.org>
Mon, 7 Apr 2008 21:28:19 +0000 (23:28 +0200)
include/vlc/libvlc_vlm.h
src/control/vlm.c

index 80ca9ff8bea600f90d8b8cc7d8ec609c247de6dd..a999ff85407fba0da836c5f3a07c61e7f7cdeffb 100644 (file)
@@ -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.
  *
index 0e794e491706aedb361e4e6f8e0a2f45dae02dd3..7ea608667be4f0ffcdec0a747b1b3d648a72ad96 100644 (file)
@@ -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,