audio/out: missing error check

Oops.
This commit is contained in:
wm4 2014-10-22 16:57:28 +02:00
parent 67d63bc948
commit 42158b819a
1 changed files with 2 additions and 0 deletions

View File

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