From d6ca9858316183f1ad7f9db41eab27f311ce93c8 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Tue, 12 Mar 2019 01:15:55 +0800 Subject: player: fix core activity state check Adds the negation missed in 8816e1117ee65039dbb5700219ba3537d3e5290e when moving from a positive-is-active to positive-is-idle variable. This leads to proper updates to properties such as "eof-reached", as well as fixes screensaver state updates. Separately found and fixed by avih and wnoun. Co-authored-by: wnoun --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index 59e3211df9..d8d9005be4 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -128,7 +128,7 @@ void update_core_idle_state(struct MPContext *mpctx) bool eof = mpctx->video_status == STATUS_EOF && mpctx->audio_status == STATUS_EOF; bool active = !mpctx->paused && mpctx->restart_complete && - mpctx->stop_play && mpctx->in_playloop && !eof; + !mpctx->stop_play && mpctx->in_playloop && !eof; if (mpctx->playback_active != active) { mpctx->playback_active = active; -- cgit v1.2.3