mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 04:45:33 +00:00
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()).
This commit is contained in:
parent
c1b64cc693
commit
a1b54d3b89
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user