mixer pulse - handle alloc failure better and dont access null
fix CID 1403930
This commit is contained in:
parent
e41d5e11bb
commit
96ae312d6e
|
@ -88,6 +88,7 @@ _pa_cvolume_convert(const pa_cvolume *volume, Emix_Volume *vol)
|
||||||
{
|
{
|
||||||
WRN("Could not allocate memory for volume");
|
WRN("Could not allocate memory for volume");
|
||||||
vol->channel_count = 0;
|
vol->channel_count = 0;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
vol->channel_count = volume->channels;
|
vol->channel_count = volume->channels;
|
||||||
|
|
Loading…
Reference in New Issue