[vlc-devel] commit: macosx: Just use openWithURL, instead of uri->path ( Derk-Jan Hartman )
git version control
git at videolan.org
Wed Jun 24 13:15:00 CEST 2009
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Jun 24 13:13:37 2009 +0200| [90ffbf679c02ccda93cbf12687cb7b6d9339c238] | committer: Derk-Jan Hartman
macosx: Just use openWithURL, instead of uri->path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90ffbf679c02ccda93cbf12687cb7b6d9339c238
---
modules/gui/macosx/playlistinfo.m | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index e94504d..fe8ad68 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -291,8 +291,8 @@ static VLCInfo *_o_sharedInstance = nil;
char *psz_meta;
NSImage *o_image;
psz_meta = input_item_GetArtURL( p_item );
- if( psz_meta && !strncmp( psz_meta, "file://", 7 ) && decode_URI( psz_meta + 7 ) )
- o_image = [[NSImage alloc] initWithContentsOfFile: [NSString stringWithUTF8String: psz_meta+7]];
+ if( psz_meta )
+ o_image = [[NSImage alloc] initWithContentsOfURL: [NSURL URLWithString:[NSString stringWithUTF8String: psz_meta]]];
else
o_image = [[NSImage imageNamed: @"noart.png"] retain];
[o_image_well setImage: o_image];
More information about the vlc-devel
mailing list