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/command.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/command.c')
-rw-r--r-- | player/command.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/player/command.c b/player/command.c index f718cb3147..9834b97b8a 100644 --- a/player/command.c +++ b/player/command.c @@ -975,9 +975,9 @@ static int mp_property_pause(m_option_t *prop, int action, void *arg, if (action == M_PROPERTY_SET) { if (*(int *)arg) { - pause_player(mpctx, PAUSE_BY_COMMAND); + pause_player(mpctx); } else { - unpause_player(mpctx, PAUSE_BY_COMMAND); + unpause_player(mpctx); } return M_PROPERTY_OK; } @@ -3596,12 +3596,12 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) } if (cmd->flags & MP_PAUSING) - pause_player(mpctx, PAUSE_BY_COMMAND); + pause_player(mpctx); if (cmd->flags & MP_PAUSING_TOGGLE) { if (opts->pause) - unpause_player(mpctx, PAUSE_BY_COMMAND); + unpause_player(mpctx); else - pause_player(mpctx, PAUSE_BY_COMMAND); + pause_player(mpctx); } } |