diff options
author | wm4 <wm4@nowhere> | 2019-11-29 00:16:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-29 12:14:43 +0100 |
commit | 1cb085a82e89ce4c9150871c910c75d9404d1e01 (patch) | |
tree | ab0fdbaa22568377a051aaef4740d5cf3656a543 /audio | |
parent | 5083db91ebff2fa469d94520bd3e8e535da74b8d (diff) | |
download | mpv-1cb085a82e89ce4c9150871c910c75d9404d1e01.tar.bz2 mpv-1cb085a82e89ce4c9150871c910c75d9404d1e01.tar.xz |
options: get rid of GLOBAL_CONFIG hack
Just an implementation detail that can be cleaned up now. Internally,
m_config maintains a tree of m_sub_options structs, except for the root
it was not defined explicitly. GLOBAL_CONFIG was a hack to get access to
it anyway. Define it explicitly instead.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/decode/ad_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c index a420021f4a..8362e918f3 100644 --- a/audio/decode/ad_lavc.c +++ b/audio/decode/ad_lavc.c @@ -81,7 +81,7 @@ static bool init(struct mp_filter *da, struct mp_codec_params *codec, const char *decoder) { struct priv *ctx = da->priv; - struct MPOpts *mpopts = mp_get_config_group(ctx, da->global, GLOBAL_CONFIG); + struct MPOpts *mpopts = mp_get_config_group(ctx, da->global, &mp_opt_root); struct ad_lavc_params *opts = mp_get_config_group(ctx, da->global, &ad_lavc_conf); AVCodecContext *lavc_context; |