[vlc-commits] commit: Art: Do not crash if album is not null but empty ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Mon Aug 9 23:08:32 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 9 23:07:25 2010 +0200| [113cb9941052b4c8b08095f16e40050747d8565c] | committer: Jean-Baptiste Kempf
Art: Do not crash if album is not null but empty
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=113cb9941052b4c8b08095f16e40050747d8565c
---
src/playlist/art.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/playlist/art.c b/src/playlist/art.c
index 497fdbd..97280e7 100644
--- a/src/playlist/art.c
+++ b/src/playlist/art.c
@@ -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 );
More information about the vlc-commits
mailing list