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 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;