summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 474d4e0c52..2db6afa05a 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -157,9 +157,10 @@ static struct vo *vo_create(struct mp_vo_opts *opts,
if (vo->driver->encode != !!vo->encode_lavc_ctx)
goto error;
struct m_config *config = m_config_from_obj_desc(vo, &desc);
- if (m_config_initialize_obj(config, &desc, &vo->priv, &args) < 0)
+ if (m_config_set_obj_params(config, args) < 0)
goto error;
- if (vo->driver->preinit(vo, (char *)args))
+ vo->priv = config->optstruct;
+ if (vo->driver->preinit(vo))
goto error;
return vo;
error: