[vlc-commits] Playlist: do not fetch art if you got an attachment as Art

Jean-Baptiste Kempf git at videolan.org
Thu Feb 16 17:27:47 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 16 17:27:41 2012 +0100| [36746327d4aef4c6f46e938771faefab4d38c6b9] | committer: Jean-Baptiste Kempf

Playlist: do not fetch art if you got an attachment as Art

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36746327d4aef4c6f46e938771faefab4d38c6b9
---

 src/playlist/preparser.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/playlist/preparser.c b/src/playlist/preparser.c
index 2697f14..d6ecf03 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -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)" );



More information about the vlc-commits mailing list