summaryrefslogtreecommitdiff
path: root/drivers/pulseaudio
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-08-07 12:54:30 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-08-07 12:54:30 +0200
commite0b5b218638df5b7b2998233182a7d8a1118e717 (patch)
tree0de2f04fbb41472d3bd9b43141f26193cb062be9 /drivers/pulseaudio
parent045ab51ae50139e645958149c6d6d354026ccdd4 (diff)
Add some code changes/fixes proposed by Coverity and Clang Tidy
Diffstat (limited to 'drivers/pulseaudio')
-rw-r--r--drivers/pulseaudio/audio_driver_pulseaudio.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pulseaudio/audio_driver_pulseaudio.cpp b/drivers/pulseaudio/audio_driver_pulseaudio.cpp
index a61fa449f1..87e24a7389 100644
--- a/drivers/pulseaudio/audio_driver_pulseaudio.cpp
+++ b/drivers/pulseaudio/audio_driver_pulseaudio.cpp
@@ -266,7 +266,10 @@ Error AudioDriverPulseAudio::init() {
}
while (pa_ready == 0) {
- pa_mainloop_iterate(pa_ml, 1, NULL);
+ ret = pa_mainloop_iterate(pa_ml, 1, NULL);
+ if (ret < 0) {
+ ERR_PRINT("pa_mainloop_iterate error");
+ }
}
if (pa_ready < 0) {