If audio won't work on Unix, disable it and move on rather than dying.

This commit is contained in:
David Schmidt 2010-04-26 12:32:46 +00:00
parent 668747920b
commit b6ebec20a6

View File

@ -373,9 +373,9 @@ parent_sound_get_sample_rate(int read_fd)
ret = read(read_fd, &tmp, 4);
if(ret != 4) {
printf("parent dying, could not get sample rate from child\n");
printf("parent could not get audio sample rate from child, disabling sound.\n");
printf("ret: %d, fd: %d errno:%d\n", ret, read_fd, errno);
exit(1);
g_audio_enable = 0;
}
close(read_fd);