diff options
author | wm4 <wm4@nowhere> | 2014-04-14 22:33:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-14 22:33:41 +0200 |
commit | 196619671d8bde5112f82b5ec5db881ff8e99f43 (patch) | |
tree | c99a86dc469a0ffb7e3026cb7251142e5710cb4d /player/client.c | |
parent | 60b900487257a3435df02c2b2ce54551c59e4311 (diff) | |
download | mpv-196619671d8bde5112f82b5ec5db881ff8e99f43.tar.bz2 mpv-196619671d8bde5112f82b5ec5db881ff8e99f43.tar.xz |
client API: remove mpv_event_pause_reason
And slightly adjust the semantics of MPV_EVENT_PAUSE/MPV_EVENT_UNPAUSE.
The real pause state can now be queried with the "core-idle" property,
the user pause state with the "pause" property, whether the player is
paused due to cache with "paused-for-cache", and the keep open event can
be guessed with the "eof-reached" property.
Diffstat (limited to 'player/client.c')
-rw-r--r-- | player/client.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/player/client.c b/player/client.c index 7bca58e4c5..9e12d75afa 100644 --- a/player/client.c +++ b/player/client.c @@ -391,10 +391,6 @@ static void status_reply(struct mpv_handle *ctx, int event, static void dup_event_data(struct mpv_event *ev) { switch (ev->event_id) { - case MPV_EVENT_PAUSE: - case MPV_EVENT_UNPAUSE: - ev->data = talloc_memdup(NULL, ev->data, sizeof(mpv_event_pause_reason)); - break; case MPV_EVENT_CLIENT_MESSAGE: { struct mpv_event_client_message *src = ev->data; struct mpv_event_client_message *msg = |