[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:10:31 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug  9 23:07:25 2010 +0200| [65fece53698915b408348295cb52175042d32716] | committer: Jean-Baptiste Kempf 

Art: Do not crash if album is not null but empty
(cherry picked from commit 113cb9941052b4c8b08095f16e40050747d8565c)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=65fece53698915b408348295cb52175042d32716
---

 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 315fd4e..c29ef44 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