Commit 70c4d326 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/vlc_app: Access meta via valueForKeyPath: to make sure we trigger art...

macosx/vlc_app: Access meta via valueForKeyPath: to make sure we trigger art work fetching. We may change the metaDictionary a bit to prevent non trapped access.
parent 4a192254
......@@ -195,9 +195,9 @@ static CGSize kArtworkSize = { 256., 256. };
self.artistLayer.string = artist ? artist : @"No Artist";
NSString * genre = [self.media.metaDictionary objectForKey:@"genre"];
self.genreLayer.string = genre ? genre : @"No Genre";
if( [self.media.metaDictionary objectForKey:@"artwork"] )
if( [self.media valueForKeyPath:@"metaDictionary.artwork"] )
{
self.artworkLayer.contents = (id)[[self.media.metaDictionary objectForKey:@"artwork"] CGImage];
self.artworkLayer.contents = (id)[[self.media valueForKeyPath:@"metaDictionary.artwork"] CGImage];
self.artworkLayer.contentsGravity = kCAGravityResizeAspect;
self.artworkLayer.borderWidth = 0.;
self.artworkLayer.backgroundColor = nil;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment