diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_vdpau.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 43e21209da..13332f0811 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1064,6 +1064,10 @@ static void flip_page_timed(struct vo *vo, int64_t pts_us, int duration) if (vc->vsync_interval == 1) duration = -1; // Make sure drop logic is disabled + /* If the presentation time may not be before our last timestamp sync. */ + if (pts_us && pts_us < vc->last_sync_update) + pts_us = vc->last_sync_update; + uint64_t now = sync_vdptime(vo); uint64_t pts = pts_us ? convert_to_vdptime(vo, pts_us) : now; uint64_t ideal_pts = pts; |