summaryrefslogtreecommitdiffstats
path: root/video/out/vo_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_image.c')
-rw-r--r--video/out/vo_image.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/video/out/vo_image.c b/video/out/vo_image.c
index 32ab26dafe..af9b0edd4c 100644
--- a/video/out/vo_image.c
+++ b/video/out/vo_image.c
@@ -90,10 +90,6 @@ static int config(struct vo *vo, uint32_t width, uint32_t height,
return 0;
}
-static void check_events(struct vo *vo)
-{
-}
-
static void draw_image(struct vo *vo, mp_image_t *mpi)
{
struct priv *p = vo->priv;
@@ -126,6 +122,8 @@ static void flip_page(struct vo *vo)
{
struct priv *p = vo->priv;
+ (p->frame)++;
+
void *t = talloc_new(NULL);
char *filename = talloc_asprintf(t, "%08d.%s", p->frame,
image_writer_file_ext(p->opts));
@@ -138,8 +136,6 @@ static void flip_page(struct vo *vo)
talloc_free(t);
mp_image_unrefp(&p->current);
-
- (p->frame)++;
}
static int query_format(struct vo *vo, uint32_t fmt)
@@ -206,6 +202,5 @@ const struct vo_driver video_out_image =
.draw_image = draw_image,
.draw_osd = draw_osd,
.flip_page = flip_page,
- .check_events = check_events,
.uninit = uninit,
};