control/media_library.c: svn propset svn:keywords "Id".
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 19 Aug 2007 22:51:32 +0000 (22:51 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 19 Aug 2007 22:51:32 +0000 (22:51 +0000)
src/control/media_library.c

index bf24a70..17dae9e 100644 (file)
@@ -3,7 +3,7 @@
  * Create a tree of the 'tags' of a media_list's media_descriptors.
  *****************************************************************************
  * Copyright (C) 2007 the VideoLAN team
- * $Id: media_library.c 21094 2007-08-15 04:53:01Z pdherbemont $
+ * $Id$
  *
  * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
  *
@@ -136,3 +136,17 @@ libvlc_media_library_media_list( libvlc_media_library_t * p_mlib,
         libvlc_media_list_retain( p_mlib->p_mlist );
     return p_mlib->p_mlist;
 }
+
+/**************************************************************************
+ *        media_list (Public)
+ **************************************************************************/
+libvlc_media_list_t *
+libvlc_media_library_media_list( libvlc_media_library_t * p_mlib,
+                                     libvlc_exception_t * p_e )
+{
+       (void)p_e;
+    if( p_mlib->p_mlist )
+        libvlc_media_list_retain( p_mlib->p_mlist );
+    return p_mlib->p_mlist;
+}
+