From 64f72687ce4227fc5e6f3636c8fd0078a8e098a2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Jan 2015 19:54:20 +0100 Subject: client API: notify API user on event queue overflow Before this, we merely printed a message to the terminal. Now the API user can determine this properly. This might be important for API users which somehow maintain complex state, which all has to be invalidated if (state-changing) events are missing due to an overflow. This also forces the client API user to empty the event queue, which is good, because otherwise the event queue would reach the "filled up" state immediately again due to further asynchronous events being added to the queue. Also add some minor improvements to mpv_wait_event() documentation, and some other minor cosmetic changes. --- player/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.h') diff --git a/player/command.h b/player/command.h index d4097fee6f..d6891b66cd 100644 --- a/player/command.h +++ b/player/command.h @@ -42,7 +42,7 @@ uint64_t mp_get_property_event_mask(const char *name); enum { // Must start with the first unused positive value in enum mpv_event_id // MPV_EVENT_* and MP_EVENT_* must not overlap. - INTERNAL_EVENT_BASE = 24, + INTERNAL_EVENT_BASE = 25, MP_EVENT_CACHE_UPDATE, MP_EVENT_WIN_RESIZE, MP_EVENT_WIN_STATE, -- cgit v1.2.3