mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
audio/out: missing error check
Oops.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user