From 1198c031e4233a0cff5aa7d24aab986163f6903a Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Mon, 4 Mar 2013 22:41:27 +0100 Subject: vo: Separate vo options from MPOpts Separate the video output options from the big MPOpts structure and also only pass the new mp_vo_opts structure to the vo backend. Move video_driver_list into mp_vo_opts --- core/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/command.c') diff --git a/core/command.c b/core/command.c index 271db5b117..3553a192ad 100644 --- a/core/command.c +++ b/core/command.c @@ -850,16 +850,16 @@ static int mp_property_fullscreen(m_option_t *prop, void *arg, MPContext *mpctx) { - struct MPOpts *opts = mpctx->video_out->opts; + struct mp_vo_opts *opts = mpctx->video_out->opts; if (!mpctx->video_out) return M_PROPERTY_UNAVAILABLE; if (action == M_PROPERTY_SET) { - if (opts->vo.fs == !!*(int *) arg) + if (opts->fs == !!*(int *) arg) return M_PROPERTY_OK; if (mpctx->video_out->config_ok) vo_control(mpctx->video_out, VOCTRL_FULLSCREEN, 0); - mpctx->opts.fullscreen = opts->vo.fs; + mpctx->opts.fullscreen = opts->fs; return M_PROPERTY_OK; } return mp_property_generic_option(prop, action, arg, mpctx); -- cgit v1.2.3