mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
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};
|
struct pl_frame_mix mix = {0};
|
||||||
if (frame->current) {
|
if (frame->current) {
|
||||||
// Update queue state
|
// Update queue state
|
||||||
struct pl_queue_params qparams = {
|
struct pl_queue_params qparams = *pl_queue_params(
|
||||||
.pts = frame->current->pts + vsync_offset,
|
.pts = frame->current->pts + vsync_offset,
|
||||||
.radius = pl_frame_mix_radius(¶ms),
|
.radius = pl_frame_mix_radius(¶ms),
|
||||||
.vsync_duration = frame->vsync_interval,
|
.vsync_duration = frame->vsync_interval,
|
||||||
.interpolation_threshold = opts->interpolation_threshold,
|
.interpolation_threshold = opts->interpolation_threshold,
|
||||||
};
|
);
|
||||||
|
|
||||||
// mpv likes to generate sporadically jumping PTS shortly after
|
// mpv likes to generate sporadically jumping PTS shortly after
|
||||||
// initialization, but pl_queue does not like these. Hard-clamp as
|
// initialization, but pl_queue does not like these. Hard-clamp as
|
||||||
|
Loading…
Reference in New Issue
Block a user