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/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/loadfile.c') 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); -- cgit v1.2.3