[vlc-commits] mac plugin: fix artwork loading

Felix Paul Kühne git at videolan.org
Wed Jan 29 14:12:46 CET 2014


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jan 28 20:00:04 2014 +0100| [c389bd3274f5c9e0ced925d471b6a4844c330a25] | committer: Felix Paul Kühne

mac plugin: fix artwork loading

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

 npapi/vlcplugin_mac.mm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index 981f772..2eaa697 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -562,7 +562,7 @@ bool VlcPluginMac::handle_event(void *event)
 
 static CGImageRef createImageNamed(NSString *name)
 {
-    CFURLRef url = CFBundleCopyResourceURL(CFBundleGetBundleWithIdentifier(CFSTR("com.netscape.vlc")), (CFStringRef)name, CFSTR("png"), NULL);
+    CFURLRef url = CFBundleCopyResourceURL(CFBundleGetBundleWithIdentifier(CFSTR("org.videolan.vlc-npapi-plugin")), (CFStringRef)name, CFSTR("png"), NULL);
 
     if (!url)
         return NULL;
@@ -691,10 +691,10 @@ static CGImageRef createImageNamed(NSString *name)
     CGContextSaveGState(cgContext);
     CGContextSetFillColorWithColor(cgContext, CGColorGetConstantColor(kCGColorBlack));
     CGContextFillRect(cgContext, self.bounds);
-    CGContextRestoreGState(cgContext);
 
     [self _drawPlayPauseButtonInContext:cgContext];
     [self _drawSliderInContext:cgContext];
+    CGContextRestoreGState(cgContext);
 }
 
 #pragma mark -



More information about the vlc-commits mailing list