mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
control/media_descriptor: Implement libvlc_media_descriptor_get_mrl.
This commit is contained in:
parent
c55d47b9a4
commit
6f5d4e4a1d
@ -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
|
||||
**************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user