diff options
author | wm4 <wm4@nowhere> | 2016-09-05 21:04:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-05 21:04:17 +0200 |
commit | 4ab860cddc177047663bbe8940b0d34c621b6425 (patch) | |
tree | b13ac6888948d4b5f132d03f3ac243ea7790db73 /audio/out/ao.c | |
parent | cc813647d54843e4731cc36160f0c1e04e4b1404 (diff) | |
download | mpv-4ab860cddc177047663bbe8940b0d34c621b6425.tar.bz2 mpv-4ab860cddc177047663bbe8940b0d34c621b6425.tar.xz |
options: add a mechanism to make sub-option replacement slightly easier
Instead of requiring each VO or AO to manually add members to MPOpts and
the global option table, make it possible to register them automatically
via vo_driver/ao_driver.global_opts members. This avoids modifying
options.c/options.h every time, including having to duplicate the exact
ifdeffery used to enable a driver.
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r-- | audio/out/ao.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c index df2fdd5416..3bfa481bc5 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -109,6 +109,7 @@ static bool get_desc(struct m_obj_desc *dst, int index) .priv_size = ao->priv_size, .priv_defaults = ao->priv_defaults, .options = ao->options, + .global_opts = ao->global_opts, .hidden = ao->encode, .p = ao, }; |