diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-03-04 22:41:27 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-03-04 23:32:47 +0100 |
commit | 1198c031e4233a0cff5aa7d24aab986163f6903a (patch) | |
tree | bff49197908452f3ad1363edcf4c527db9bf1fe0 /core/command.c | |
parent | 4949992264d78d6dd22c0f6c611850402fd6eb30 (diff) | |
download | mpv-1198c031e4233a0cff5aa7d24aab986163f6903a.tar.bz2 mpv-1198c031e4233a0cff5aa7d24aab986163f6903a.tar.xz |
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
Diffstat (limited to 'core/command.c')
-rw-r--r-- | core/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |