summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-09 10:00:21 +0100
committerwm4 <wm4@nowhere>2014-11-09 10:01:16 +0100
commit3d7d1f3f264e55857c83b8a94aa24081ae45dd4d (patch)
treefc576981333d8b0fe3702f0e38a0fc67c5d68562 /player
parentb021d038c2217903e511ca3673d5f2f1b996c4d4 (diff)
downloadmpv-3d7d1f3f264e55857c83b8a94aa24081ae45dd4d.tar.bz2
mpv-3d7d1f3f264e55857c83b8a94aa24081ae45dd4d.tar.xz
video/out: minor simplification to event query function
The "clear" parameter is confusing and useless.
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
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)