[vlc-commits] macosx: compilation fix for clang 6

Felix Paul Kühne git at videolan.org
Wed Jul 15 11:12:10 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jul 15 11:12:01 2015 +0200| [4e2d05bfa2b8073e9a4bce794ad0835dbad652ad] | committer: Felix Paul Kühne

macosx: compilation fix for clang 6

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

 modules/gui/macosx/SPMediaKeyTap.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/SPMediaKeyTap.m b/modules/gui/macosx/SPMediaKeyTap.m
index 0a2f4b5..4e38c80 100644
--- a/modules/gui/macosx/SPMediaKeyTap.m
+++ b/modules/gui/macosx/SPMediaKeyTap.m
@@ -190,7 +190,7 @@ static CGEventRef tapEventCallback(CGEventTapProxy proxy, CGEventType type, CGEv
         id grab = [self grab];
         [grab pauseTapOnTapThread:newSetting];
         NSTimer *timer = [NSTimer timerWithTimeInterval:0 invocation:[grab invocation] repeats:NO];
-        CFRunLoopAddTimer(_tapThreadRL, (CFRunLoopTimerRef)timer, kCFRunLoopCommonModes);
+        CFRunLoopAddTimer(_tapThreadRL, (CFRunLoopTimerRef)CFBridgingRetain(timer), kCFRunLoopCommonModes);
     }
 }
 



More information about the vlc-commits mailing list