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:
wm4 2014-08-26 20:45:41 +02:00
parent b7f72aa2f4
commit 3cc3dea915
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ static void handle_sstep(struct MPContext *mpctx)
queue_seek(mpctx, MPSEEK_RELATIVE, opts->step_sec, 0, true); 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) if (mpctx->max_frames >= 0)
mpctx->stop_play = PT_NEXT_ENTRY; mpctx->stop_play = PT_NEXT_ENTRY;
if (mpctx->step_frames > 0 && !mpctx->paused) if (mpctx->step_frames > 0 && !mpctx->paused)