From 47f756d64b5e3d4c0f599b236ff7e8dc3cc75a6e Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 18 Aug 2023 17:14:08 +0200 Subject: [PATCH] vo_gpu_next: move allow_delayed to move appropriate place No need to override this so late in the general (non-screenshot) code. --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index d6d13a40ef..822ca06153 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1047,7 +1047,6 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) pars->params.skip_caching_single_frame = !cache_frame; pars->params.preserve_mixing_cache = p->inter_preserve && !frame->still; pars->params.frame_mixer = frame->still ? NULL : p->frame_mixer; - pars->peak_detect_params.allow_delayed = p->delayed_peak; // Render frame if (!pl_render_image_mix(p->rr, &mix, &target, &pars->params)) { @@ -1961,6 +1960,7 @@ static void update_render_options(struct vo *vo) pars->peak_detect_params.scene_threshold_low = opts->tone_map.scene_threshold_low; pars->peak_detect_params.scene_threshold_high = opts->tone_map.scene_threshold_high; pars->peak_detect_params.percentile = opts->tone_map.peak_percentile; + pars->peak_detect_params.allow_delayed = p->delayed_peak; const struct pl_tone_map_function * const tone_map_funs[] = { [TONE_MAPPING_AUTO] = &pl_tone_map_auto,