mirror of https://github.com/mpv-player/mpv
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:
parent
94203436c4
commit
d6ca985831
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue