diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/video_out.c | 5 | ||||
-rw-r--r-- | libvo/video_out.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c index 679d111e6f..070a66c679 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -298,6 +298,11 @@ int vo_get_buffered_frame(struct vo *vo, bool eof) return vo->frame_loaded ? 0 : -1; } +void vo_skip_frame(struct vo *vo) +{ + vo->frame_loaded = false; +} + int vo_draw_frame(struct vo *vo, uint8_t *src[]) { assert(!vo->driver->is_new); diff --git a/libvo/video_out.h b/libvo/video_out.h index 5fac7dd02d..5fde30d153 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -283,6 +283,7 @@ void list_video_out(void); int vo_control(struct vo *vo, uint32_t request, void *data); int vo_draw_image(struct vo *vo, struct mp_image *mpi, double pts); int vo_get_buffered_frame(struct vo *vo, bool eof); +void vo_skip_frame(struct vo *vo); int vo_draw_frame(struct vo *vo, uint8_t *src[]); int vo_draw_slice(struct vo *vo, uint8_t *src[], int stride[], int w, int h, int x, int y); void vo_draw_osd(struct vo *vo, struct osd_state *osd); |