summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c8
-rw-r--r--video/out/vo.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 2804687e5e..aa92d349e5 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -1096,6 +1096,14 @@ double vo_get_delay(struct vo *vo)
return res ? (res - mp_time_us()) / 1e6 : 0;
}
+void vo_discard_timing_info(struct vo *vo)
+{
+ struct vo_internal *in = vo->in;
+ pthread_mutex_lock(&in->lock);
+ reset_vsync_timings(vo);
+ pthread_mutex_unlock(&in->lock);
+}
+
int64_t vo_get_delayed_count(struct vo *vo)
{
struct vo_internal *in = vo->in;
diff --git a/video/out/vo.h b/video/out/vo.h
index 511954c153..a5280e5611 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -366,6 +366,7 @@ double vo_get_estimated_vsync_interval(struct vo *vo);
double vo_get_estimated_vsync_jitter(struct vo *vo);
double vo_get_display_fps(struct vo *vo);
double vo_get_delay(struct vo *vo);
+void vo_discard_timing_info(struct vo *vo);
void vo_wakeup(struct vo *vo);
void vo_wait_default(struct vo *vo, int64_t until_time);