From 3e8510d515e9446f7c1f2b4372e501a713bb2502 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 14 Apr 2017 19:06:13 +0200 Subject: player: fix a corner case in previous commit The previous commit set "mpctx->playback_active = false;" before unload hooks were processed. This was intentional, but could in theory cause playback_active to be set to true again, and actually it's plain wrong if playback was exited in the middle it. There needs to be something else that forces playback_active to be set to false while in this unloading state. --- player/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index b9fa706f7d..7945080538 100644 --- a/player/core.h +++ b/player/core.h @@ -417,6 +417,7 @@ typedef struct MPContext { bool paused; // internal pause state bool playback_active; // not paused, restarting, loading, unloading + bool in_playloop; // step this many frames, then pause int step_frames; -- cgit v1.2.3