1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 12:55:16 +00:00

audio/out: missing error check

Oops.
This commit is contained in:
wm4 2014-10-22 16:57:28 +02:00
parent 67d63bc948
commit 42158b819a

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;