From 35ce0c33427ff0314762c50b45fca7fd405e7bf2 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sun, 13 Jul 2008 20:35:00 +0200 Subject: [PATCH] macosx: Fix art loading when URL contains spaces. --- modules/gui/macosx/playlistinfo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5