aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c9
1 files changed, 6 insertions, 3 deletions
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");