Commit 6f5d4e4a authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor: Implement libvlc_media_descriptor_get_mrl.

parent c55d47b9
......@@ -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
......
......@@ -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
**************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment