summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-31 04:35:23 +0200
committerwm4 <wm4@nowhere>2014-07-31 04:35:23 +0200
commita1b54d3b89ebc7a4a30c52c9c575003a98d89b4e (patch)
treef0278a24a54dc401b1d5b25c00134e90d4467870
parentc1b64cc6937327ab12fcd128bcc6b64d43572c8a (diff)
downloadmpv-a1b54d3b89ebc7a4a30c52c9c575003a98d89b4e.tar.bz2
mpv-a1b54d3b89ebc7a4a30c52c9c575003a98d89b4e.tar.xz
client API: don't send internal events to the clients
"Internal" events were added in the previous commits to leverage the client API property mechanism, without making weird properties public. But they were sent to clients too (and returned by mpv_wait_event()).
-rw-r--r--player/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index bd6445e5c7..dee8729b04 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3901,7 +3901,8 @@ void mp_notify(struct MPContext *mpctx, int event, void *arg)
if (event == MPV_EVENT_START_FILE)
ctx->last_seek_pts = MP_NOPTS_VALUE;
- mp_client_broadcast_event(mpctx, event, arg);
+ if (event < INTERNAL_EVENT_BASE)
+ mp_client_broadcast_event(mpctx, event, arg);
if (event >= 0 && event < MP_ARRAY_SIZE(mp_event_property_change))
mp_client_property_change(mpctx, mp_event_property_change[event]);
}