summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 19:00:46 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 19:00:46 +0100
commit96ae312d6e6dd2422181b5a8141d97ab9e3e4e13 (patch)
tree2e3723a29c96353f5d5a4bb994cb157c86f7b63c /src/modules
parente41d5e11bb85da8372970628e6da588b3d210501 (diff)
mixer pulse - handle alloc failure better and dont access null
fix CID 1403930
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/mixer/lib/backends/pulseaudio/pulse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
index 8cbb1f4..2e10c4e 100644
--- a/src/modules/mixer/lib/backends/pulseaudio/pulse.c
+++ b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
@@ -88,6 +88,7 @@ _pa_cvolume_convert(const pa_cvolume *volume, Emix_Volume *vol)
88 { 88 {
89 WRN("Could not allocate memory for volume"); 89 WRN("Could not allocate memory for volume");
90 vol->channel_count = 0; 90 vol->channel_count = 0;
91 return;
91 } 92 }
92 93
93 vol->channel_count = volume->channels; 94 vol->channel_count = volume->channels;