From 79b09592c8a1eb348361c84e2c3835f42e35a224 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Dec 2013 18:42:19 +0100 Subject: [PATCH] vo_vdpau: fix unintended truncation of 64 bit timestamps to 32 bit How embarrassing... This code is inactive for all VOs other than vo_vdpau. For vo_vdpau, this caused various issues, such as stuttering after about an hour of running mpv; see github issue #403. --- video/out/vo.c | 2 +- video/out/vo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/vo.c b/video/out/vo.c index 9a98ebafb6..99efc9eec9 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -262,7 +262,7 @@ void vo_draw_osd(struct vo *vo, struct osd_state *osd) vo->driver->draw_osd(vo, osd); } -void vo_flip_page(struct vo *vo, unsigned int pts_us, int duration) +void vo_flip_page(struct vo *vo, int64_t pts_us, int duration) { if (!vo->config_ok) return; diff --git a/video/out/vo.h b/video/out/vo.h index 2d3e507213..351dd3f0ae 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -292,7 +292,7 @@ int vo_get_buffered_frame(struct vo *vo, bool eof); void vo_skip_frame(struct vo *vo); void vo_new_frame_imminent(struct vo *vo); void vo_draw_osd(struct vo *vo, struct osd_state *osd); -void vo_flip_page(struct vo *vo, unsigned int pts_us, int duration); +void vo_flip_page(struct vo *vo, int64_t pts_us, int duration); void vo_check_events(struct vo *vo); void vo_seek_reset(struct vo *vo); void vo_destroy(struct vo *vo);