]> git.sesse.net Git - vlc/commitdiff
control/media_descriptor: Implement libvlc_media_descriptor_get_mrl.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 9 Aug 2007 16:08:14 +0000 (16:08 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 9 Aug 2007 16:08:14 +0000 (16:08 +0000)
include/vlc/libvlc.h
src/control/media_descriptor.c

index 9381ef4dccc55a3d66072f59cab1a0f830d50407..a39971576291a454053505d7889f5329841c40f5 100644 (file)
@@ -147,6 +147,9 @@ VLC_PUBLIC_API void libvlc_media_descriptor_retain(
 VLC_PUBLIC_API void libvlc_media_descriptor_release(
                                    libvlc_media_descriptor_t *p_meta_desc );
 
+VLC_PUBLIC_API char * libvlc_media_descriptor_get_mrl( libvlc_media_descriptor_t * p_md,
+                                                       libvlc_exception_t * p_e );
+
 /**
  * Read the meta of the media descriptor.
  * \param p_meta_desc the media descriptor to read
index e2b78a09a41332e4a7d37540cf02b1632f9f89f2..271052ca88bd4d056a9a8e8e4aceeb9b82ec0b9f 100644 (file)
@@ -149,6 +149,17 @@ libvlc_media_descriptor_duplicate( libvlc_media_descriptor_t *p_md_orig )
     return p_md;
 }
 
+/**************************************************************************
+ * Retain a media descriptor object
+ **************************************************************************/
+char *
+libvlc_media_descriptor_get_mrl( libvlc_media_descriptor_t * p_md,
+                                 libvlc_exception_t * p_e )
+{
+    (void)p_e;
+    return strdup( p_md->p_input_item->psz_uri );
+}
+
 /**************************************************************************
  * Getter for meta information
  **************************************************************************/