[vlc-devel] [VLC 3.x v2 04/11] macosx: SPMediaKeyTap: Improve log message

Marvin Scholz epirat07 at gmail.com
Fri Apr 23 01:19:31 UTC 2021


Make it clearer where this message comes from, so it is more obvious
if it ever pops up in the system log, especially now that VLC has a
quite different SPMediaKeyTap compared to the (no longer maintained)
upstream project.
---
 modules/gui/macosx/SPMediaKeyTap.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/SPMediaKeyTap.m b/modules/gui/macosx/SPMediaKeyTap.m
index d82babb4ed..0b7dccdf70 100644
--- a/modules/gui/macosx/SPMediaKeyTap.m
+++ b/modules/gui/macosx/SPMediaKeyTap.m
@@ -218,7 +218,7 @@ static CGEventRef tapEventCallback2(CGEventTapProxy proxy, CGEventType type, CGE
     SPMediaKeyTap *self = (__bridge SPMediaKeyTap *)refcon;
 
     if(type == kCGEventTapDisabledByTimeout) {
-        NSLog(@"Media key event tap was disabled by timeout");
+        NSLog(@"VLC SPMediaKeyTap: Media key event tap was disabled by timeout");
         CGEventTapEnable(self->_eventPort, TRUE);
         return event;
     } else if(type == kCGEventTapDisabledByUserInput) {
@@ -230,7 +230,7 @@ static CGEventRef tapEventCallback2(CGEventTapProxy proxy, CGEventType type, CGE
         nsEvent = [NSEvent eventWithCGEvent:event];
     }
     @catch (NSException * e) {
-        NSLog(@"Strange CGEventType: %d: %@", type, e);
+        NSLog(@"VLC SPMediaKeyTap: Strange CGEventType: %d: %@", type, e);
         assert(0);
         return event;
     }
-- 
2.30.1



More information about the vlc-devel mailing list