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:
parent
67d63bc948
commit
42158b819a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user