]> git.sesse.net Git - vlc/commitdiff
Don't cache local album art
authorRafaël Carré <funman@videolan.org>
Wed, 29 Aug 2007 22:06:53 +0000 (22:06 +0000)
committerRafaël Carré <funman@videolan.org>
Wed, 29 Aug 2007 22:06:53 +0000 (22:06 +0000)
src/input/meta.c

index 1ab12f241e55f1a0fe63decf5d5b5c43fa4062db..988406d4f2a67bd175173b90e470e1bb1b7c2f96 100644 (file)
@@ -400,7 +400,13 @@ int input_DownloadAndCacheArt( playlist_t *p_playlist, input_item_t *p_item )
     psz_arturl = input_item_GetArtURL( p_item );
     assert( !EMPTY_STR( psz_arturl ) );
 
-    if( !strncmp( psz_arturl , "APIC", 4 ) )
+    if( !strncmp( psz_arturl , "file://", 7 ) )
+    {
+        msg_Dbg( p_playlist, "Album art is local file, no need to cache" );
+        free( psz_arturl );
+        return VLC_SUCCESS;
+    }
+    else if( !strncmp( psz_arturl , "APIC", 4 ) )
     {
         msg_Warn( p_playlist, "APIC fetch not supported yet" );
         free( psz_arturl );