From b586bc2dbec6495e65ef1a34045f6d66a7112d9d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 14 Apr 2017 18:56:03 +0200 Subject: player: fix core-idle and eof-reached update notifcations Make mpv_observe_property() work correctly on them even with --keep-open-pause=no. This also changes the situations in which the screensaver is enabled/disabled subtly. --- player/loadfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 1542e16e49..1aa4c4a49d 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1281,6 +1281,9 @@ reopen_file: terminate_playback: + mpctx->playback_active = false; + update_core_idle_state(mpctx); + process_unload_hooks(mpctx); if (mpctx->stop_play == KEEP_PLAYING) @@ -1306,7 +1309,6 @@ terminate_playback: uninit_audio_out(mpctx); mpctx->playback_initialized = false; - update_screensaver_state(mpctx); if (mpctx->stop_play == PT_RELOAD_FILE) { mpctx->stop_play = KEEP_PLAYING; -- cgit v1.2.3