From 196619671d8bde5112f82b5ec5db881ff8e99f43 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 14 Apr 2014 22:33:41 +0200 Subject: 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. --- player/client.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'player/client.c') 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 = -- cgit v1.2.3