From 3cc3dea915b069b1d5d38170f8cc9ea8f5fcc213 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 26 Aug 2014 20:45:41 +0200 Subject: 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. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index 4cf8407812..c96f53471d 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -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) -- cgit v1.2.3