player: don't wait for last video frame in encode mode

This code makes the player wait using real time, which makes sense for
normal playback, but not encode mode.
This commit is contained in:
wm4 2018-04-26 18:46:18 +02:00 committed by Jan Ekström
parent 9c639016f8
commit 4fc5c1fa13
1 changed files with 3 additions and 0 deletions

View File

@ -1012,6 +1012,9 @@ void write_video(struct MPContext *mpctx)
} else {
mpctx->time_frame = 0;
}
// Encode mode can't honor this; it'll only delay finishing.
if (mpctx->encode_lavc_ctx)
mpctx->time_frame = 0;
}
if (mpctx->video_status == STATUS_DRAINING) {