From 42158b819a0db629acd39a21e041805a2359a8ab Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 22 Oct 2014 16:57:28 +0200 Subject: audio/out: missing error check Oops. --- audio/out/ao.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio') 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; -- cgit v1.2.3