mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
vo_gpu: potentially fix icc-profile-auto updating
vo_gpu.c will call gl_video_icc_auto_enabled() to check whether it should retrieve the ICC profile. But the value returned by this function will be outdated, because gl_video_update_options() is not called yet. Change the order of function calls so that this is done after updating the options. (This is fairly chaotic, but I guess this code will be refactored a dozen of times anyway in the future.)
This commit is contained in:
parent
95c6a482eb
commit
501230f2a0
@ -198,8 +198,8 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
request_hwdec_api(vo, data);
|
||||
return true;
|
||||
case VOCTRL_UPDATE_RENDER_OPTS: {
|
||||
get_and_update_icc_profile(p);
|
||||
gl_video_configure_queue(p->renderer, vo);
|
||||
get_and_update_icc_profile(p);
|
||||
vo->want_redraw = true;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user