summaryrefslogtreecommitdiffstats
path: root/video/out/vo_caca.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-16 14:12:01 +0200
committerwm4 <wm4@nowhere>2013-05-26 16:44:19 +0200
commit8df780cb50ec4bb615ac25987de52bb3b4126de9 (patch)
tree28dd9cff3411c902707169beb16490408362e7ac /video/out/vo_caca.c
parent526e969419891386dd699f472f06f61df821a431 (diff)
downloadmpv-8df780cb50ec4bb615ac25987de52bb3b4126de9.tar.bz2
mpv-8df780cb50ec4bb615ac25987de52bb3b4126de9.tar.xz
vo: remove vo.check_events callback
Use VOCTRL_CHECK_EVENTS instead. Change the remaining VOs to use it. Only vo_sdl and vo_caca actually need this, and vo_null, vo_lavc, and vo_image had stubs only.
Diffstat (limited to 'video/out/vo_caca.c')
-rw-r--r--video/out/vo_caca.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/vo_caca.c b/video/out/vo_caca.c
index 95f13781eb..fcb0bc4322 100644
--- a/video/out/vo_caca.c
+++ b/video/out/vo_caca.c
@@ -282,6 +282,11 @@ static int query_format(struct vo *vo, uint32_t format)
static int control(struct vo *vo, uint32_t request, void *data)
{
+ switch (request) {
+ case VOCTRL_CHECK_EVENTS:
+ check_events(vo);
+ return VO_TRUE;
+ }
return VO_NOTIMPL;
}
@@ -298,6 +303,5 @@ const struct vo_driver video_out_caca = {
.control = control,
.draw_image = draw_image,
.flip_page = flip_page,
- .check_events = check_events,
.uninit = uninit,
};