mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
pulseaudio: move NULL check up before dereference.
Fixes CID 1197068. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
fc7e02f0ff
commit
57d10a28f4
@ -148,10 +148,10 @@ int ff_pulse_audio_get_devices(AVDeviceInfoList *devices, const char *server, in
|
||||
|
||||
dev_list.output = output;
|
||||
dev_list.devices = devices;
|
||||
devices->nb_devices = 0;
|
||||
devices->devices = NULL;
|
||||
if (!devices)
|
||||
return AVERROR(EINVAL);
|
||||
devices->nb_devices = 0;
|
||||
devices->devices = NULL;
|
||||
if (!(pa_ml = pa_mainloop_new()))
|
||||
return AVERROR(ENOMEM);
|
||||
if (!(pa_mlapi = pa_mainloop_get_api(pa_ml))) {
|
||||
|
Loading…
Reference in New Issue
Block a user