summaryrefslogtreecommitdiffstats
path: root/video/out/vo_sdl.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_sdl.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_sdl.c')
-rw-r--r--video/out/vo_sdl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c
index 9f6cadacc3..3dfa09cec7 100644
--- a/video/out/vo_sdl.c
+++ b/video/out/vo_sdl.c
@@ -979,6 +979,9 @@ static int get_eq(struct vo *vo, const char *name, int *value)
static int control(struct vo *vo, uint32_t request, void *data)
{
switch (request) {
+ case VOCTRL_CHECK_EVENTS:
+ check_events(vo);
+ return 1;
case VOCTRL_FULLSCREEN:
set_fullscreen(vo, !vo->opts->fs);
return 1;
@@ -1039,7 +1042,6 @@ const struct vo_driver video_out_sdl = {
.control = control,
.draw_image = draw_image,
.uninit = uninit,
- .check_events = check_events,
.draw_osd = draw_osd,
.flip_page = flip_page,
};