diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-30 17:41:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 17:41:28 +0100 |
commit | 162bebcafa7d8321a3dbf0878c0816d0a61924f6 (patch) | |
tree | 5c4c4fdb7f265217acff4d2fd5d63cd1624e2660 | |
parent | db90f6cf8504bf004fd4c4adcad3a01c0c9e04f7 (diff) | |
parent | 32eccb87e0ad53504b100f01b5eb779e55e12c9b (diff) |
Merge pull request #34647 from madmiraal/pulse-audio-null-pointer
Check for null pointer in PulseAudio server info callback.
-rw-r--r-- | drivers/pulseaudio/audio_driver_pulseaudio.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pulseaudio/audio_driver_pulseaudio.cpp b/drivers/pulseaudio/audio_driver_pulseaudio.cpp index 7ba2175652..b4c595344b 100644 --- a/drivers/pulseaudio/audio_driver_pulseaudio.cpp +++ b/drivers/pulseaudio/audio_driver_pulseaudio.cpp @@ -78,6 +78,8 @@ void AudioDriverPulseAudio::pa_source_info_cb(pa_context *c, const pa_source_inf } void AudioDriverPulseAudio::pa_server_info_cb(pa_context *c, const pa_server_info *i, void *userdata) { + + ERR_FAIL_COND_MSG(!i, "PulseAudio server info is null."); AudioDriverPulseAudio *ad = (AudioDriverPulseAudio *)userdata; ad->capture_default_device = i->default_source_name; |