Commit 35ce0c33 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Fix art loading when URL contains spaces.

parent 8d88a428
......@@ -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]];
o_image = [[NSImage imageNamed: @"noart.png"] retain];
[o_image_well setImage: o_image];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment