From: Pierre d'Herbemont Date: Sun, 13 Jul 2008 18:35:00 +0000 (+0200) Subject: macosx: Fix art loading when URL contains spaces. X-Git-Tag: 0.9.0-test2~17 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=35ce0c33427ff0314762c50b45fca7fd405e7bf2;p=vlc macosx: Fix art loading when URL contains spaces. --- diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m index 858d55c159..edc4e5150a 100644 --- a/modules/gui/macosx/playlistinfo.m +++ b/modules/gui/macosx/playlistinfo.m @@ -281,7 +281,7 @@ static VLCInfo *_o_sharedInstance = nil; NSImage *o_image; psz_meta = input_item_GetArtURL( p_item ); if( psz_meta && !strncmp( psz_meta, "file://", 7 ) ) - o_image = [[NSImage alloc] initWithContentsOfURL: [NSURL URLWithString: [NSString stringWithUTF8String: psz_meta]]]; + o_image = [[NSImage alloc] initWithContentsOfFile: [NSString stringWithUTF8String: psz_meta+7]]; else o_image = [[NSImage imageNamed: @"noart.png"] retain]; [o_image_well setImage: o_image];