]> git.sesse.net Git - vlc/commitdiff
macosx: Ignore attachment:// in Art uri for now.
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 24 Jun 2009 11:19:28 +0000 (13:19 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 24 Jun 2009 11:19:28 +0000 (13:19 +0200)
modules/gui/macosx/playlistinfo.m

index fe8ad68a4f7a0c029d194d848ecc42de9249f8b5..623a6a54f8c5bd85b4ce6a86f628f64b64426158 100644 (file)
@@ -291,7 +291,9 @@ static VLCInfo *_o_sharedInstance = nil;
         char *psz_meta;
         NSImage *o_image;
         psz_meta = input_item_GetArtURL( p_item );
-        if( psz_meta )
+
+        /* FIXME Can also be attachment:// */
+        if( psz_meta && strncmp( psz_meta, "attachment://", 13 ) )
             o_image = [[NSImage alloc] initWithContentsOfURL: [NSURL URLWithString:[NSString stringWithUTF8String: psz_meta]]];
         else
             o_image = [[NSImage imageNamed: @"noart.png"] retain];