summaryrefslogtreecommitdiffstats
path: root/player/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-19 19:54:20 +0100
committerwm4 <wm4@nowhere>2015-01-19 21:26:42 +0100
commit64f72687ce4227fc5e6f3636c8fd0078a8e098a2 (patch)
treedf27ca9566e18837a49d5320e50bb7beb73e29d3 /player/command.h
parentffaf4af230b92eb94fdf31784ca323cc931822e3 (diff)
downloadmpv-64f72687ce4227fc5e6f3636c8fd0078a8e098a2.tar.bz2
mpv-64f72687ce4227fc5e6f3636c8fd0078a8e098a2.tar.xz
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.
Diffstat (limited to 'player/command.h')
-rw-r--r--player/command.h2
1 files changed, 1 insertions, 1 deletions
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,