]> git.sesse.net Git - vlc/commitdiff
macosx: Just use openWithURL, instead of uri->path
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 24 Jun 2009 11:13:37 +0000 (13:13 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 24 Jun 2009 11:14:24 +0000 (13:14 +0200)
modules/gui/macosx/playlistinfo.m

index e94504dec7a94131820707a70b03b90fba7af4b7..fe8ad68a4f7a0c029d194d848ecc42de9249f8b5 100644 (file)
@@ -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];