Commit 58bd68a6 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor.c: Ask for artwork only when needed.

parent 566b8b28
...@@ -217,10 +217,6 @@ static void preparse_if_needed( libvlc_media_descriptor_t *p_md ) ...@@ -217,10 +217,6 @@ static void preparse_if_needed( libvlc_media_descriptor_t *p_md )
playlist_PreparseEnqueue( playlist_PreparseEnqueue(
p_md->p_libvlc_instance->p_libvlc_int->p_playlist, p_md->p_libvlc_instance->p_libvlc_int->p_playlist,
p_md->p_input_item ); p_md->p_input_item );
playlist_AskForArtEnqueue(
p_md->p_libvlc_instance->p_libvlc_int->p_playlist,
p_md->p_input_item );
p_md->b_preparsed = VLC_TRUE; p_md->b_preparsed = VLC_TRUE;
} }
} }
...@@ -446,6 +442,13 @@ char * libvlc_media_descriptor_get_meta( libvlc_media_descriptor_t *p_md, ...@@ -446,6 +442,13 @@ char * libvlc_media_descriptor_get_meta( libvlc_media_descriptor_t *p_md,
psz_meta = input_item_GetMeta( p_md->p_input_item, psz_meta = input_item_GetMeta( p_md->p_input_item,
libvlc_to_vlc_meta[e_meta] ); libvlc_to_vlc_meta[e_meta] );
if( e_meta == libvlc_meta_ArtworkURL && !psz_meta )
{
playlist_AskForArtEnqueue(
p_md->p_libvlc_instance->p_libvlc_int->p_playlist,
p_md->p_input_item );
}
/* Should be integrated in core */ /* Should be integrated in core */
if( !psz_meta && e_meta == libvlc_meta_Title && p_md->p_input_item->psz_name ) if( !psz_meta && e_meta == libvlc_meta_Title && p_md->p_input_item->psz_name )
{ {
......
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