From f1d161d55f458cf47e63d1ab9ddf08859019dd8a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 12 Aug 2017 23:08:48 +0200 Subject: player: make --lavfi-complex changeable at runtime Tends to be somewhat glitchy if subtitles are enabled, and you enable and disable tracks. On error, this will disable --lavfi-complex, which will result in whatever behavior. --- 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 c282c5349f..b023e350c9 100644 --- a/player/command.c +++ b/player/command.c @@ -5901,6 +5901,9 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags) if (flags & UPDATE_VOL) audio_update_volume(mpctx); + + if (flags & UPDATE_LAVFI_COMPLEX) + update_lavfi_complex(mpctx); } void mp_notify_property(struct MPContext *mpctx, const char *property) -- cgit v1.2.3