[vlc-devel] commit: macosx: Fix art loading when URL contains spaces. (Pierre d' Herbemont )

git version control git at videolan.org
Sun Jul 13 20:32:41 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul 13 20:35:00 2008 +0200| [35ce0c33427ff0314762c50b45fca7fd405e7bf2]

macosx: Fix art loading when URL contains spaces.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35ce0c33427ff0314762c50b45fca7fd405e7bf2
---

 modules/gui/macosx/playlistinfo.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index 858d55c..edc4e51 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];




More information about the vlc-devel mailing list