mirror of
https://github.com/mpv-player/mpv
synced 2025-02-06 23:21:54 +00:00
player: make unpausing directly after seek work with --keep-open (again)
Commitfcf0b80dc9
fixed this the first time. Commit85576f31a9
"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:
parent
d5de79d10f
commit
44ad00ba10
@ -1158,6 +1158,9 @@ static void handle_playback_restart(struct MPContext *mpctx)
|
|||||||
|
|
||||||
static void handle_eof(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
|
/* 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
|
* 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. */
|
* outside of the video, and we do want to quit. */
|
||||||
|
Loading…
Reference in New Issue
Block a user