summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-14 09:56:05 +0100
committerDudemanguy <random342@airmail.cc>2023-11-18 22:54:29 +0000
commitfe748e54f17051f13b651472ccda961a7cccad40 (patch)
tree37125e874e55d378996b245971df096b956464bf /video/out
parentbd1ac498bbcaf47ba73ed442d16ae4982782ed86 (diff)
downloadmpv-fe748e54f17051f13b651472ccda961a7cccad40.tar.bz2
mpv-fe748e54f17051f13b651472ccda961a7cccad40.tar.xz
vo_gpu_next: set frame duration if provided by VO
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_gpu_next.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 4bf7721723..869a11d54d 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -903,6 +903,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
pl_queue_push(p->queue, &(struct pl_source_frame) {
.pts = mpi->pts,
+ .duration = can_interpolate ? frame->approx_duration : 0,
.frame_data = mpi,
.map = map_frame,
.unmap = unmap_frame,