From f537378d905810484c60c06fbb9736a78c9b01f7 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 31 Oct 2023 20:42:04 +0100 Subject: [PATCH] vo_gpu_next: use pl_queue_params() macro In case new default parameters are added later. --- video/out/vo_gpu_next.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index e2436f64f1..1d76c04359 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1051,12 +1051,12 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) struct pl_frame_mix mix = {0}; if (frame->current) { // Update queue state - struct pl_queue_params qparams = { + struct pl_queue_params qparams = *pl_queue_params( .pts = frame->current->pts + vsync_offset, .radius = pl_frame_mix_radius(¶ms), .vsync_duration = frame->vsync_interval, .interpolation_threshold = opts->interpolation_threshold, - }; + ); // mpv likes to generate sporadically jumping PTS shortly after // initialization, but pl_queue does not like these. Hard-clamp as