]> git.sesse.net Git - vlc/commitdiff
macosx: Fix art loading when URL contains spaces.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 13 Jul 2008 18:35:00 +0000 (20:35 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 13 Jul 2008 18:35:00 +0000 (20:35 +0200)
modules/gui/macosx/playlistinfo.m

index 858d55c15929a8ace418421bc86fc6106c20d428..edc4e5150a769cd2793f9957e01657af19635656 100644 (file)
@@ -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];