n7tae / mvoice

A prototype M17 voice application for ham radio
GNU General Public License v2.0
55 stars 13 forks source link

fix crash when pAudio{Input,Output}Choice->text() is NULL #25

Closed jg1uaa closed 4 weeks ago

jg1uaa commented 4 weeks ago

No problem under snd_device_name_get_hint() returns device name correctly, but it makes the crash that the function retrns no meaningful information (this is occured with unofficial alsa-lib port on OpenBSD).

To mitigate the problem, check pAudio{Input,Output}Choice->text() and avoid unwanted behavior.

n7tae commented 4 weeks ago

See Closed item #23.