mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
src/control/media_descriptor.c: Title meta.
This commit is contained in:
parent
12b4ef8787
commit
a7ed4d1d66
@ -165,6 +165,7 @@ libvlc_media_descriptor_get_mrl( libvlc_media_descriptor_t * p_md,
|
||||
**************************************************************************/
|
||||
static const vlc_meta_type_t meta_conversion[] =
|
||||
{
|
||||
[libvlc_meta_Title] = vlc_meta_Title,
|
||||
[libvlc_meta_Artist] = vlc_meta_Artist,
|
||||
[libvlc_meta_Genre] = vlc_meta_Genre,
|
||||
[libvlc_meta_Copyright] = vlc_meta_Copyright,
|
||||
@ -195,6 +196,10 @@ char * libvlc_media_descriptor_get_meta( libvlc_media_descriptor_t *p_md,
|
||||
|
||||
psz_meta = input_item_GetMeta( p_md->p_input_item, meta_conversion[e_meta] );
|
||||
|
||||
/* Should be integrated in core */
|
||||
if( !psz_meta && e_meta == libvlc_meta_Title && p_md->p_input_item->psz_name )
|
||||
return strdup( p_md->p_input_item->psz_name );
|
||||
|
||||
if( !psz_meta )
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user