mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
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.
This commit is contained in:
parent
6d9e72cd89
commit
ff26024496
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user