summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-17 23:18:17 +0100
committerwm4 <wm4@nowhere>2019-12-17 23:18:17 +0100
commit2a4d7c4aa866c300bd538bd8eb14bb714bda9bce (patch)
treeecc160366f06512549512467186837783447ca81 /player/playloop.c
parent13dff3073d85a4288ee317680fc44b9dc4ca096d (diff)
downloadmpv-2a4d7c4aa866c300bd538bd8eb14bb714bda9bce.tar.bz2
mpv-2a4d7c4aa866c300bd538bd8eb14bb714bda9bce.tar.xz
command, vo: remove old option change notification mechanisms
These all have been replaced recently. There was a leftover in window.swift. It couldn't have done anything useful in the current state of the code, so drop these lines.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/player/playloop.c b/player/playloop.c
index e671d35ecd..3049763661 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -845,17 +845,6 @@ static void handle_vo_events(struct MPContext *mpctx)
mp_notify(mpctx, MP_EVENT_WIN_RESIZE, NULL);
if (events & VO_EVENT_WIN_STATE)
mp_notify(mpctx, MP_EVENT_WIN_STATE, NULL);
- if (events & VO_EVENT_FULLSCREEN_STATE) {
- // The only purpose of this is to update the fullscreen flag on the
- // playloop side if it changes "from outside" on the VO.
- int old_fs = mpctx->opts->vo->fullscreen;
- int fs = old_fs;
- vo_control(vo, VOCTRL_GET_FULLSCREEN, &fs);
- if (old_fs != fs) {
- m_config_set_option_raw(mpctx->mconfig,
- m_config_get_co(mpctx->mconfig, bstr0("fullscreen")), &fs, 0);
- }
- }
}
static void handle_sstep(struct MPContext *mpctx)