[vlc-commits] windowless mac: remove useless statics

Felix Paul Kühne git at videolan.org
Fri Feb 6 17:15:07 CET 2015


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Feb  6 17:13:52 2015 +0100| [7fe7091ad5f78ac63c23b3451c984f820819353f] | committer: Felix Paul Kühne

windowless mac: remove useless statics

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

 npapi/vlcwindowless_mac.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/npapi/vlcwindowless_mac.cpp b/npapi/vlcwindowless_mac.cpp
index 2a0aaba..efeaf8a 100644
--- a/npapi/vlcwindowless_mac.cpp
+++ b/npapi/vlcwindowless_mac.cpp
@@ -26,9 +26,9 @@
 
 #define SHOW_BRANDING 1
 
-static CGImageRef createImageNamed(CFStringRef);
+CGImageRef createImageNamed(CFStringRef);
 
-static CGImageRef createImageNamed(CFStringRef name)
+CGImageRef createImageNamed(CFStringRef name)
 {
     CFURLRef url = CFBundleCopyResourceURL(CFBundleGetBundleWithIdentifier(CFSTR("org.videolan.vlc-npapi-plugin")), name, CFSTR("png"), NULL);
 
@@ -264,8 +264,8 @@ bool VlcWindowlessMac::handle_event(void *event)
         float left = 0;
         float top  = 0;
 
-        static const size_t kComponentsPerPixel = 4;
-        static const size_t kBitsPerComponent = sizeof(unsigned char) * 8;
+        const size_t kComponentsPerPixel = 4;
+        const size_t kBitsPerComponent = sizeof(unsigned char) * 8;
         CGRect rect;
 
         if (m_media_width != 0 && m_media_height != 0) {



More information about the vlc-commits mailing list