From 282e3202d52a84b868f6972532f10d97ee23c594 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 31 Dec 2014 19:01:28 +0100 Subject: video: pass some VO params as struct Not particularly elegant, but better than adding more and more stuff to the relevant function signatures. --- player/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'player/main.c') diff --git a/player/main.c b/player/main.c index 7f334d1128..9ecdbc3ed5 100644 --- a/player/main.c +++ b/player/main.c @@ -452,9 +452,12 @@ int mp_initialize(struct MPContext *mpctx) if (opts->force_vo) { opts->fixed_vo = 1; - mpctx->video_out = init_best_video_out(mpctx->global, mpctx->input, - mpctx->osd, - mpctx->encode_lavc_ctx); + struct vo_extra ex = { + .input_ctx = mpctx->input, + .osd = mpctx->osd, + .encode_lavc_ctx = mpctx->encode_lavc_ctx, + }; + mpctx->video_out = init_best_video_out(mpctx->global, &ex); if (!mpctx->video_out) { MP_FATAL(mpctx, "Error opening/initializing " "the selected video_out (-vo) device.\n"); -- cgit v1.2.3