[vlc-devel] commit: macosx: Ignore attachment:// in Art uri for now. (Derk-Jan Hartman )
git version control
git at videolan.org
Wed Jun 24 13:20:04 CEST 2009
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Jun 24 13:19:28 2009 +0200| [89ad376f86f9146c5dfe794cdf76e5fbe2f69d34] | committer: Derk-Jan Hartman
macosx: Ignore attachment:// in Art uri for now.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89ad376f86f9146c5dfe794cdf76e5fbe2f69d34
---
modules/gui/macosx/playlistinfo.m | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index fe8ad68..623a6a5 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -291,7 +291,9 @@ static VLCInfo *_o_sharedInstance = nil;
char *psz_meta;
NSImage *o_image;
psz_meta = input_item_GetArtURL( p_item );
- if( psz_meta )
+
+ /* FIXME Can also be attachment:// */
+ if( psz_meta && strncmp( psz_meta, "attachment://", 13 ) )
o_image = [[NSImage alloc] initWithContentsOfURL: [NSURL URLWithString:[NSString stringWithUTF8String: psz_meta]]];
else
o_image = [[NSImage imageNamed: @"noart.png"] retain];
More information about the vlc-devel
mailing list