[vlc-devel] [PATCH] Always cache the latest album art

Marc Aldorasi m101010a at gmail.com
Wed Jul 23 18:45:00 CEST 2014


This fixes the problem described in
https://forum.videolan.org/viewtopic.php?f=2&t=79717
---
 src/playlist/art.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/playlist/art.c b/src/playlist/art.c
index 18a3764..3ee296d 100644
--- a/src/playlist/art.c
+++ b/src/playlist/art.c
@@ -278,17 +278,7 @@ int playlist_SaveArt( vlc_object_t *obj, input_item_t *p_item,
         return VLC_EGENERIC;
     }
 
-    /* Check if we already dumped it */
-    struct stat s;
-    if( !vlc_stat( psz_filename, &s ) )
-    {
-        input_item_SetArtURL( p_item, psz_uri );
-        free( psz_filename );
-        free( psz_uri );
-        return VLC_SUCCESS;
-    }
-
-    /* Dump it otherwise */
+    /* Dump it */
     FILE *f = vlc_fopen( psz_filename, "wb" );
     if( f )
     {
-- 
2.0.1




More information about the vlc-devel mailing list