Commit 113cb994 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Art: Do not crash if album is not null but empty

parent 49b3b98b
......@@ -122,7 +122,7 @@ static char *ArtCachePath( input_item_t *p_item )
psz_album = vlc_meta_Get( p_item->p_meta, vlc_meta_Album );
psz_arturl = vlc_meta_Get( p_item->p_meta, vlc_meta_ArtworkURL );
if( (!psz_artist || !psz_album ) && !psz_arturl )
if( (EMPTY_STR(psz_artist) || EMPTY_STR(psz_album) ) && !psz_arturl )
goto end;
psz_path = ArtCacheGetDirPath( psz_arturl, psz_artist, psz_album );
......
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