[vlc-commits] Playlist: do not fetch art if you got an attachment as Art
Jean-Baptiste Kempf
git at videolan.org
Fri Feb 17 00:57:03 CET 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 16 17:27:41 2012 +0100| [d153e8383a05fc0c2d7c16f9872043086917042f] | committer: Jean-Baptiste Kempf
Playlist: do not fetch art if you got an attachment as Art
(cherry picked from commit 36746327d4aef4c6f46e938771faefab4d38c6b9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d153e8383a05fc0c2d7c16f9872043086917042f
---
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 d5fc865..ba9a8d9 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -167,7 +167,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