summaryrefslogtreecommitdiffstats
path: root/player/loadfile.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/loadfile.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/loadfile.c')
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index f2164d205b..b8dab59b66 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1354,7 +1354,7 @@ goto_reopen_demuxer: ;
get_relative_time(mpctx); // reset current delta
if (mpctx->opts->pause)
- pause_player(mpctx, PAUSE_BY_COMMAND);
+ pause_player(mpctx);
mp_notify(mpctx, MPV_EVENT_FILE_LOADED, NULL);