From 3d7d1f3f264e55857c83b8a94aa24081ae45dd4d Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 9 Nov 2014 10:00:21 +0100 Subject: video/out: minor simplification to event query function The "clear" parameter is confusing and useless. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index 9e1cef957d..b525fd9d0c 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -673,7 +673,7 @@ static void handle_cursor_autohide(struct MPContext *mpctx) static void handle_vo_events(struct MPContext *mpctx) { struct vo *vo = mpctx->video_out; - int events = vo ? vo_query_events(vo, VO_EVENTS_USER, true) : 0; + int events = vo ? vo_query_and_reset_events(vo, VO_EVENTS_USER) : 0; if (events & VO_EVENT_RESIZE) mp_notify(mpctx, MP_EVENT_WIN_RESIZE, NULL); if (events & VO_EVENT_WIN_STATE) -- cgit v1.2.3