From 8135e25600ace2894df274e6a825cfef525fee77 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Apr 2018 19:36:16 +0200 Subject: 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. --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/video.c') 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; -- cgit v1.2.3