mirror of https://github.com/mpv-player/mpv
vo_gpu_next: use pl_queue_params() macro
In case new default parameters are added later.
This commit is contained in:
parent
908e75ee83
commit
f537378d90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue