mirror of https://github.com/mpv-player/mpv
player: fix weird behavior when framestepping over format changes
When video format changes, the frame before the frame with the new format sets video_status briefly to STATUS_DRAINING. This caused the code to handle the EOF case to kick in, which just pauses the player when trying to step past the last frame. As a result, trying to framestep over format changes resulted in pausing the player. Fix by testing against the correct status.
This commit is contained in:
parent
b7f72aa2f4
commit
3cc3dea915
|
@ -715,7 +715,7 @@ static void handle_sstep(struct MPContext *mpctx)
|
|||
queue_seek(mpctx, MPSEEK_RELATIVE, opts->step_sec, 0, true);
|
||||
}
|
||||
|
||||
if (mpctx->video_status >= STATUS_DRAINING) {
|
||||
if (mpctx->video_status >= STATUS_EOF) {
|
||||
if (mpctx->max_frames >= 0)
|
||||
mpctx->stop_play = PT_NEXT_ENTRY;
|
||||
if (mpctx->step_frames > 0 && !mpctx->paused)
|
||||
|
|
Loading…
Reference in New Issue