From 7ae4396ea55f555b0dc2c61d5fcd65f3c4e52b80 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 19 Aug 2023 16:03:09 +0200 Subject: [PATCH] vo_gpu_next: fix typo in video_screenshot() Undefined behavior (bad initializer). Somehow didn't trigger a warning on my end... Fixes: a8192eda6cfc909fc9f5f62e36523b53c0300eff --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 658fc42acf..892819aaaf 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1177,7 +1177,7 @@ static bool update_auto_profile(struct priv *p, int *events) static void video_screenshot(struct vo *vo, struct voctrl_screenshot *args) { struct priv *p = vo->priv; - pl_options pars = pars; + pl_options pars = p->pars; pl_gpu gpu = p->gpu; pl_tex fbo = NULL; args->res = NULL;