diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-03-12 01:15:55 +0800 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-03-12 01:56:32 +0200 |
commit | d6ca9858316183f1ad7f9db41eab27f311ce93c8 (patch) | |
tree | f42edda28798d6317b58301ae845b1de755f02df /player | |
parent | 94203436c4e185458a74608d74f9b98cdb526a46 (diff) | |
download | mpv-d6ca9858316183f1ad7f9db41eab27f311ce93c8.tar.bz2 mpv-d6ca9858316183f1ad7f9db41eab27f311ce93c8.tar.xz |
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 <wnoun@outlook.com>
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |