diff options
author | wm4 <wm4@nowhere> | 2014-10-22 16:57:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-22 16:57:28 +0200 |
commit | 42158b819a0db629acd39a21e041805a2359a8ab (patch) | |
tree | e15de66654a75c5a414e365295bccab8b271327a /audio | |
parent | 67d63bc948d7cfe9409162297c4e6bc0efa8b025 (diff) | |
download | mpv-42158b819a0db629acd39a21e041805a2359a8ab.tar.bz2 mpv-42158b819a0db629acd39a21e041805a2359a8ab.tar.xz |
audio/out: missing error check
Oops.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao.c | 2 |
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; |