提交 91644fbf 编写于 作者: J jp9000

CoreAudio: Fail if no output device found

Also, don't have it repeat trying to reconnect if no devices are found
上级 9c6da6f5
......@@ -210,10 +210,12 @@ static bool find_device_id_by_uid(struct coreaudio_data *ca)
/* have to do this because mac output devices don't actually exist */
if (astrcmpi(ca->device_uid, "default") == 0) {
if (ca->input)
if (ca->input) {
ca->default_device = true;
else
get_default_output_device(ca);
} else {
if (!get_default_output_device(ca))
return false;
}
}
cf_uid = CFStringCreateWithCString(NULL, ca->device_uid,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册