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:
wm4 2017-11-01 01:58:16 +01:00
parent 95c6a482eb
commit 501230f2a0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}