diff --git a/audio/out/ao.c b/audio/out/ao.c index f56a083719..5b7029613f 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -192,6 +192,8 @@ static struct ao *ao_create(bool probing, struct mpv_global *global, { struct MPOpts *opts = global->opts; struct ao *ao = ao_alloc(probing, global, input_ctx, name, args); + if (!ao) + goto error; ao->samplerate = samplerate; ao->channels = channels; ao->format = format;