mirror of https://github.com/mpv-player/mpv
vo_gpu: restore dovi mapping directly on image_params after init
This commit is contained in:
parent
3acd253e89
commit
c02aa154ab
|
@ -124,9 +124,7 @@ static void reconfig(struct render_backend *ctx, struct mp_image_params *params)
|
|||
{
|
||||
struct priv *p = ctx->priv;
|
||||
|
||||
struct mp_image_params fallback_params = *params;
|
||||
mp_image_params_restore_dovi_mapping(&fallback_params);
|
||||
gl_video_config(p->renderer, &fallback_params);
|
||||
gl_video_config(p->renderer, params);
|
||||
}
|
||||
|
||||
static void reset(struct render_backend *ctx)
|
||||
|
|
|
@ -911,6 +911,7 @@ static void init_video(struct gl_video *p)
|
|||
}
|
||||
p->color_swizzle[4] = '\0';
|
||||
|
||||
mp_image_params_restore_dovi_mapping(&p->image_params);
|
||||
mp_image_params_guess_csp(&p->image_params);
|
||||
|
||||
av_lfg_init(&p->lfg, 1);
|
||||
|
|
|
@ -123,9 +123,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params)
|
|||
return -1;
|
||||
|
||||
resize(vo);
|
||||
struct mp_image_params fallback_params = *params;
|
||||
mp_image_params_restore_dovi_mapping(&fallback_params);
|
||||
gl_video_config(p->renderer, &fallback_params);
|
||||
gl_video_config(p->renderer, params);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue