From 90ffbf679c02ccda93cbf12687cb7b6d9339c238 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Wed, 24 Jun 2009 13:13:37 +0200 Subject: [PATCH] macosx: Just use openWithURL, instead of uri->path --- modules/gui/macosx/playlistinfo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m index e94504dec7..fe8ad68a4f 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]; -- 2.39.5