From fb67db8b72a329fd017409338d6742c773ce85bf Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 20 Sep 2016 00:59:54 +0200 Subject: player: make --osc/--ytdl settable during playback Setting the osc or ytdl properties will now load/unload the associated scripts. (For ytdl this does not mean the currently played URL will be reloaded.) Also add a changelog entry for this, which also covers the preceding work for --terminal. --- player/command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index d6c0f9cf08..d5d95602a6 100644 --- a/player/command.c +++ b/player/command.c @@ -5603,6 +5603,9 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags) osd_changed(mpctx->osd); mp_wakeup_core(mpctx); } + + if (flags & UPDATE_BUILTIN_SCRIPTS) + mp_load_builtin_scripts(mpctx); } void mp_notify_property(struct MPContext *mpctx, const char *property) -- cgit v1.2.3