summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-12-12 22:17:19 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2023-02-13 21:53:41 +0100
commitff2602449674eea222cc99294e66802a19d97cdd (patch)
treec4c32d1b56ae01511ef45aa674d932defe771aeb /player/screenshot.c
parent6d9e72cd89652aaf73fa5a8256c439221e86b94a (diff)
downloadmpv-ff2602449674eea222cc99294e66802a19d97cdd.tar.bz2
mpv-ff2602449674eea222cc99294e66802a19d97cdd.tar.xz
screenshot: explicitly default VOCTRL_SCREENSHOT csp
This allows the logic in `convert_image` to fast-path if the image params are equal. Without this check, the image params are basically never equal, because that path goes through `mp_image_params_guess_csp` while the `mp_image` itself does not. Force it here for consistency across VOs.
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index f0af132efb..99b38a544d 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -369,6 +369,7 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode,
if (image && need_add_subs)
add_subs(mpctx, image);
+ mp_image_params_guess_csp(&image->params);
return image;
}