mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-09-27 08:54:30 +00:00
If audio won't work on Unix, disable it and move on rather than dying.
This commit is contained in:
parent
668747920b
commit
b6ebec20a6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user