player: make unpausing directly after seek work with --keep-open (again)

Commit fcf0b80dc9 fixed this the first time. Commit 85576f31a9
"accidentally" removed this code again. The commit message justifying
the removal is correct, except it doesn't take other side-effects of the
state machine into account. I obviously didn't remember what exactly
this was about. So add a comment explaining it this time.

Just apply it again; the thing the latter commit fixed still works.

Fixes: #7819
This commit is contained in:
wm4 2020-06-10 11:43:19 +02:00
parent d5de79d10f
commit 44ad00ba10
1 changed files with 3 additions and 0 deletions

View File

@ -1158,6 +1158,9 @@ static void handle_playback_restart(struct MPContext *mpctx)
static void handle_eof(struct MPContext *mpctx)
{
if (mpctx->seek.type)
return; // for proper keep-open operation
/* Don't quit while paused and we're displaying the last video frame. On the
* other hand, if we don't have a video frame, then the user probably seeked
* outside of the video, and we do want to quit. */