summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index b7b017138d..2a0f17c748 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -730,6 +730,13 @@ int64_t vo_get_drop_count(struct vo *vo)
return r;
}
+void vo_increment_drop_count(struct vo *vo, int64_t n)
+{
+ pthread_mutex_lock(&vo->in->lock);
+ vo->in->drop_count += n;
+ pthread_mutex_unlock(&vo->in->lock);
+}
+
// Make the VO redraw the OSD at some point in the future.
void vo_redraw(struct vo *vo)
{