mixer pulse - handle alloc failure better and dont access null

fix CID 1403930
This commit is contained in:
Carsten Haitzler 2019-08-06 19:00:46 +01:00
parent e41d5e11bb
commit 96ae312d6e
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ _pa_cvolume_convert(const pa_cvolume *volume, Emix_Volume *vol)
{
WRN("Could not allocate memory for volume");
vol->channel_count = 0;
return;
}
vol->channel_count = volume->channels;