input_FindArtInCache( p_playlist, p_item );
char *psz_arturl = input_item_GetArtURL( p_item );
- if( !strncmp( psz_arturl, "file://", strlen( "file://" ) ) )
+ if( psz_arturl && !strncmp( psz_arturl, "file://", strlen( "file://" ) ) )
{
free( psz_arturl );
return 0; /* Art is in cache, no need to go further */
}
/* We already have all needed meta, but we need art right now */
else if( p_playlist->p_fetcher->i_art_policy == ALBUM_ART_ALL &&
- strncmp( psz_arturl, "file://", strlen("file://") ) )
+ !psz_arturl ? 1 :
+ strncmp( psz_arturl, "file://", strlen("file://") ) )
{
preparse_item_t p;
PL_DEBUG("meta ok for %s, need to fetch art", psz_name );