summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 50c95830c3..562689c80b 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -150,6 +150,8 @@ static struct ao *ao_create(bool probing, struct mpv_global *global,
if (ao->driver->encode != !!ao->encode_lavc_ctx)
goto error;
struct m_config *config = m_config_from_obj_desc(ao, &desc);
+ if (m_config_apply_defaults(config, name, global->opts->ao_defs) < 0)
+ goto error;
if (m_config_set_obj_params(config, args) < 0)
goto error;
ao->priv = config->optstruct;