player: fix core activity state check

Adds the negation missed in 8816e1117e
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 <wnoun@outlook.com>
This commit is contained in:
Avi Halachmi (:avih) 2019-03-12 01:15:55 +08:00 committed by Jan Ekström
parent 94203436c4
commit d6ca985831
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ void update_core_idle_state(struct MPContext *mpctx)
bool eof = mpctx->video_status == STATUS_EOF && bool eof = mpctx->video_status == STATUS_EOF &&
mpctx->audio_status == STATUS_EOF; mpctx->audio_status == STATUS_EOF;
bool active = !mpctx->paused && mpctx->restart_complete && 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) { if (mpctx->playback_active != active) {
mpctx->playback_active = active; mpctx->playback_active = active;