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

Marvin Scholz epirat07 at gmail.com
Thu Apr 22 15:40:00 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/SPMediaKeyTap.m b/modules/gui/macosx/SPMediaKeyTap.m
index ee0a7d026e..30a73f0430 100644
--- a/modules/gui/macosx/SPMediaKeyTap.m
+++ b/modules/gui/macosx/SPMediaKeyTap.m
@@ -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