aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-04-22 19:36:16 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-04-29 02:21:32 +0300
commit8135e25600ace2894df274e6a825cfef525fee77 (patch)
tree372c2642c06ff8dc4ca90517c97495b102d9e700 /player
parentbfc33da250e4fdb6bb57bdf051ad666570ae985f (diff)
vo: add vo_reconfig2()
1. I want to get away from mp_image_params (maybe). 2. For encoding mode, it's convenient to get the nominal_fps, which is a mp_image field, and not in mp_image_params.
Diffstat (limited to 'player')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 7ec05e0f6d..1a85cf511f 100644
--- a/player/video.c
+++ b/player/video.c
@@ -1063,7 +1063,7 @@ void write_video(struct MPContext *mpctx)
info->name, p.w, p.h, extra, mp_imgfmt_to_name(p.imgfmt), sfmt);
MP_VERBOSE(mpctx, "VO: Description: %s\n", info->description);
- int vo_r = vo_reconfig(vo, &p);
+ int vo_r = vo_reconfig2(vo, mpctx->next_frames[0]);
if (vo_r < 0) {
mpctx->error_playing = MPV_ERROR_VO_INIT_FAILED;
goto error;