diff options
author | wm4 <wm4@nowhere> | 2013-12-01 00:12:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-01 00:12:10 +0100 |
commit | b18f02d1ad5e5ce4031438f1cd0f1f3aaaf83003 (patch) | |
tree | b723192a213fbdb0b64a742c91bc106237e5d539 /video/out | |
parent | aaddcb702ef93eac9087852202a59f91abb31433 (diff) | |
download | mpv-b18f02d1ad5e5ce4031438f1cd0f1f3aaaf83003.tar.bz2 mpv-b18f02d1ad5e5ce4031438f1cd0f1f3aaaf83003.tar.xz |
options: add options that set defaults for af/vf/ao/vo
There are some use cases for this. For example, you can use it to set
defaults of automatically inserted filters (like af_lavrresample). It's
also useful if you have a non-trivial VO configuration, and want to use
--vo to quickly change between the drivers without repeating the whole
configuration in the --vo argument.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 41a1b2a8ca..dc17a2bbb6 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -169,6 +169,8 @@ static struct vo *vo_create(struct mpv_global *global, if (vo->driver->encode != !!vo->encode_lavc_ctx) goto error; struct m_config *config = m_config_from_obj_desc(vo, &desc); + if (m_config_apply_defaults(config, name, vo->opts->vo_defs) < 0) + goto error; if (m_config_set_obj_params(config, args) < 0) goto error; vo->priv = config->optstruct; |