summaryrefslogtreecommitdiffstats
path: root/player/lua.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-14 22:33:41 +0200
committerwm4 <wm4@nowhere>2014-04-14 22:33:41 +0200
commit196619671d8bde5112f82b5ec5db881ff8e99f43 (patch)
treec99a86dc469a0ffb7e3026cb7251142e5710cb4d /player/lua.c
parent60b900487257a3435df02c2b2ce54551c59e4311 (diff)
downloadmpv-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/lua.c')
-rw-r--r--player/lua.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/player/lua.c b/player/lua.c
index 36cbadcd3b..141d95248a 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -475,22 +475,6 @@ static int script_wait_event(lua_State *L)
lua_setfield(L, -2, "args"); // event
break;
}
- case MPV_EVENT_PAUSE:
- case MPV_EVENT_UNPAUSE:
- {
- mpv_event_pause_reason *msg = event->data;
- lua_pushboolean(L, msg->real_paused);
- lua_setfield(L, -2, "real_paused");
- lua_pushboolean(L, msg->user_paused);
- lua_setfield(L, -2, "user_paused");
- lua_pushboolean(L, msg->by_command);
- lua_setfield(L, -2, "by_command");
- lua_pushboolean(L, msg->by_cache);
- lua_setfield(L, -2, "by_cache");
- lua_pushboolean(L, msg->by_keep_open);
- lua_setfield(L, -2, "by_keep_open");
- break;
- }
case MPV_EVENT_PROPERTY_CHANGE: {
mpv_event_property *prop = event->data;
lua_pushstring(L, prop->name);