diff options
author | der richter <der.richter@gmx.de> | 2020-01-21 19:14:00 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-01-26 12:09:55 +0100 |
commit | 695d850412144629827bdea146e6bf4bbeba39ed (patch) | |
tree | 119dec09e5401548e059f5898868d1fed56bcfb7 /osdep/macosx_application.m | |
parent | 3d16ab1a311d16cd5a07feca916494869a80d264 (diff) | |
download | mpv-695d850412144629827bdea146e6bf4bbeba39ed.tar.bz2 mpv-695d850412144629827bdea146e6bf4bbeba39ed.tar.xz |
mac: report playback state to the MediaPlayer Command Center
some system logic for the global media key events depends on the right
playback state. set the state properly to prevent more breakages in the
future.
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r-- | osdep/macosx_application.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index 43f3bb4a4f..d553c69158 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -174,6 +174,12 @@ static const char macosx_icon[] = if ([self respondsToSelector:@selector(touchBar)]) [(TouchBar *)self.touchBar processEvent:event]; #endif +#if HAVE_MACOS_MEDIA_PLAYER + // 10.12.2 runtime availability check + if ([self respondsToSelector:@selector(touchBar)]) { + [_remoteCommandCenter processEvent:event]; + } +#endif if (_cocoa_cb) { [_cocoa_cb processEvent:event]; } |