]> git.sesse.net Git - vlc/commitdiff
input/meta.c: Make sure the artwork cache is used.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 15:21:38 +0000 (15:21 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 15:21:38 +0000 (15:21 +0000)
src/input/meta.c

index 657f8533178feb4f3960f93d25eb7f2ebfebaf0d..d85692defed724932907a72023213b1f27daecd0 100644 (file)
@@ -162,12 +162,13 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
     free( psz_artist );
     free( psz_album );
 
-    char *psz_arturl = input_item_GetArtURL( p_item );
     input_FindArtInCache( p_playlist, p_item );
+
+    char *psz_arturl = input_item_GetArtURL( p_item );
     if( !EMPTY_STR( psz_arturl ) )
     {
         free( psz_arturl );
-        return 0;
+        return 0; /* Art is in cache, no need to go further */
     }
     free( psz_arturl );