summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-10-02 12:33:34 +0200
committerwm4 <wm4@nowhere>2016-10-02 12:33:34 +0200
commit39fc5e1deb0c5753e7123529e4dd5c750aed1e8d (patch)
tree92b460dc2802ccf34c3ea413370daa98428f7a1e /player/command.c
parente3a57272a712542e739b97db31efebc4cc17c53a (diff)
downloadmpv-39fc5e1deb0c5753e7123529e4dd5c750aed1e8d.tar.bz2
mpv-39fc5e1deb0c5753e7123529e4dd5c750aed1e8d.tar.xz
player: make --stop-screensaver runtime-changeable
Move the screensaver enable/disable determination to a central place, and call it if the stop-screensaver property is changed. Also, do not stop the screensaver when in idle mode (i.e. no file is loaded). Fixes #3615.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 7c0cfb82ee..a714123558 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5720,6 +5720,9 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags)
if (flags & UPDATE_PRIORITY)
update_priority(mpctx);
+
+ if (flags & UPDATE_SCREENSAVER)
+ update_screensaver_state(mpctx);
}
void mp_notify_property(struct MPContext *mpctx, const char *property)