From 501230f2a014887ce38e0d3a73bb432166f611f1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Nov 2017 01:58:16 +0100 Subject: 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.) --- video/out/vo_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index 98a21bf755..d739cf6bfa 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -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; } -- cgit v1.2.3