]> git.sesse.net Git - vlc/commitdiff
Playlist: do not fetch art if you got an attachment as Art
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Feb 2012 16:27:41 +0000 (17:27 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Feb 2012 16:27:41 +0000 (17:27 +0100)
src/playlist/preparser.c

index 2697f144a5968d52b351f274d44f4fede4c12aad..d6ecf0350ed2d3c215f72008cf7785822702fee3 100644 (file)
@@ -163,7 +163,9 @@ static void Art( playlist_preparser_t *p_preparser, input_item_t *p_item )
         const char *psz_name = vlc_meta_Get( p_item->p_meta, vlc_meta_Title );
 
         if( p_preparser->i_art_policy == ALBUM_ART_ALL &&
-            ( !psz_arturl || strncmp( psz_arturl, "file://", 7 ) ) )
+                ( !psz_arturl ||
+                  ( strncmp( psz_arturl, "file://", 7 ) &&
+                    strncmp( psz_arturl, "attachment://", 13 ) ) ) )
         {
             msg_Dbg( p_playlist, "meta ok for %s, need to fetch art",
                      psz_name ? psz_name : "(null)" );