summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-26 18:46:18 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit4fc5c1fa134d36472fdbdfa4880fd74af750c8c5 (patch)
tree63ec118b46fb941deb5a5831aeef75e52cd17d93 /player
parent9c639016f85aebf69a0533311f8baa2fbb42ff40 (diff)
downloadmpv-4fc5c1fa134d36472fdbdfa4880fd74af750c8c5.tar.bz2
mpv-4fc5c1fa134d36472fdbdfa4880fd74af750c8c5.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c
index f4623f29e8..5db76db3fd 100644
--- a/player/video.c
+++ b/player/video.c
@@ -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) {