Commit 5091d5e1 authored by Laurent Aimar's avatar Laurent Aimar

A really small optim (art fetcher).

parent a1aca436
...@@ -197,10 +197,6 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item ) ...@@ -197,10 +197,6 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item )
/* */ /* */
psz_album = input_item_GetAlbum( p_item ); psz_album = input_item_GetAlbum( p_item );
psz_artist = input_item_GetArtist( p_item ); psz_artist = input_item_GetArtist( p_item );
psz_title = input_item_GetTitle( p_item );
if( !psz_title )
psz_title = input_item_GetName( p_item );
if( psz_album && psz_artist ) if( psz_album && psz_artist )
{ {
msg_Dbg( p_fetcher, "searching art for %s - %s", msg_Dbg( p_fetcher, "searching art for %s - %s",
...@@ -208,10 +204,13 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item ) ...@@ -208,10 +204,13 @@ static int FindArt( playlist_fetcher_t *p_fetcher, input_item_t *p_item )
} }
else else
{ {
msg_Dbg( p_fetcher, "searching art for %s", psz_title = input_item_GetTitle( p_item );
psz_title ); if( !psz_title )
psz_title = input_item_GetName( p_item );
msg_Dbg( p_fetcher, "searching art for %s", psz_title );
free( psz_title );
} }
free( psz_title );
/* Fetch the art url */ /* Fetch the art url */
p_fetcher->p_private = p_item; p_fetcher->p_private = p_item;
......
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