summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_application.m
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2019-11-30 23:47:52 +0100
committerder richter <der.richter@gmx.de>2019-12-15 20:07:11 +0100
commitc8cc203735d73f62def2692d1027f45ac10c03db (patch)
tree021ddf9157de39ea066f727f7bc298eb2915531b /osdep/macosx_application.m
parente5676a67eef087aba1ccc0ab707cc5f96cc09470 (diff)
downloadmpv-c8cc203735d73f62def2692d1027f45ac10c03db.tar.bz2
mpv-c8cc203735d73f62def2692d1027f45ac10c03db.tar.xz
cocoa-cb: use m_config_cache and new VOCTRL for option handling
this removes the direct access of the mp_vo_opts stuct via the vo struct and replaces it with the m_config_cache usage. this updates the fullscreen and window-minimized property via m_config_cache_write_opt instead of the old mechanism via VOCTRL and event flagging. also use the new VOCTRL_VO_OPTS_CHANGED event for fullscreen and border changes.
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r--osdep/macosx_application.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index a07f4f5db9..8b3fac95a4 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -189,6 +189,11 @@ static const char macosx_icon[] =
return &macos_conf;
}
+- (const struct m_sub_options *)getVoSubConf
+{
+ return &vo_sub_opts;
+}
+
- (void)queueCommand:(char *)cmd
{
[_eventsResponder queueCommand:cmd];