From 2994ae9ecba3d6c4f8c80e65572f9ea13c393eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <funman@videolan.org> Date: Wed, 29 Aug 2007 22:06:53 +0000 Subject: [PATCH] Don't cache local album art --- src/input/meta.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/input/meta.c b/src/input/meta.c index 1ab12f241e55..988406d4f2a6 100644 --- a/src/input/meta.c +++ b/src/input/meta.c @@ -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 ); -- GitLab