summaryrefslogtreecommitdiff
path: root/system/kegs/allow_sound_open_fail.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-06-24 16:34:25 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-06-28 11:49:20 +0700
commitdfec940e0028db00f9fdf059c7d2c208d908b541 (patch)
treee0e45810ac8244fca5e98bfbefe438661902fb96 /system/kegs/allow_sound_open_fail.diff
parentbbaae0b2947a34a69078ceb22d14e25e2e4f138d (diff)
downloadslackbuilds-dfec940e0028db00f9fdf059c7d2c208d908b541.tar.gz
system/kegs: Fix audio issues.
Diffstat (limited to 'system/kegs/allow_sound_open_fail.diff')
-rw-r--r--system/kegs/allow_sound_open_fail.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/kegs/allow_sound_open_fail.diff b/system/kegs/allow_sound_open_fail.diff
new file mode 100644
index 0000000000..bf9086f72d
--- /dev/null
+++ b/system/kegs/allow_sound_open_fail.diff
@@ -0,0 +1,15 @@
+diff -Naur kegs.0.91/src/sound.c kegs.0.91.patched/src/sound.c
+--- kegs.0.91/src/sound.c 2004-12-06 19:42:47.000000000 -0500
++++ kegs.0.91.patched/src/sound.c 2015-06-21 17:48:21.000000000 -0400
+@@ -363,9 +363,9 @@
+
+ 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);
+