From 012d317a1e9b26a5dab9da815edeb1b8214c698a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 8 Nov 2024 04:22:32 +0100 Subject: [PATCH] vo_gpu_next: clear renderer cache on options update This ensures that options are applied to current frame, even in paused state. --- video/out/vo_gpu_next.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index b57b671b81..5a8202d689 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -133,7 +133,6 @@ struct priv { bool is_interpolated; bool want_reset; bool frame_pending; - bool redraw; pl_options pars; struct m_config_cache *opts_cache; @@ -2312,6 +2311,9 @@ AV_NOWARN_DEPRECATED( } pars->params.hooks = p->hooks; + + MP_DBG(p, "Render options updated, resetting render state.\n"); + p->want_reset = true; } const struct vo_driver video_out_gpu_next = {