diff options
author | nectar <nectar@FreeBSD.org> | 1999-03-09 11:07:01 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 1999-03-09 11:07:01 +0800 |
commit | c4eff6e8ed6b8900037a57b6b242b16f2881be4b (patch) | |
tree | 5711946afcc9a85a3a3550ef9578103f64740b10 /audio/gnomemedia2 | |
parent | 094472fd12b22146f34e16056fb3ef71d4516ee3 (diff) | |
download | freebsd-ports-graphics-c4eff6e8ed6b8900037a57b6b242b16f2881be4b.tar.gz freebsd-ports-graphics-c4eff6e8ed6b8900037a57b6b242b16f2881be4b.tar.zst freebsd-ports-graphics-c4eff6e8ed6b8900037a57b6b242b16f2881be4b.zip |
Patch audio device scanning so that it doesn't quit when it fails
to open an audio device with ENXIO (Device not configured). This
is likely needed on systems using the pcm sound driver.
Diffstat (limited to 'audio/gnomemedia2')
-rw-r--r-- | audio/gnomemedia2/files/patch-ad | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/gnomemedia2/files/patch-ad b/audio/gnomemedia2/files/patch-ad index 6a817788707..8c2d1acfb01 100644 --- a/audio/gnomemedia2/files/patch-ad +++ b/audio/gnomemedia2/files/patch-ad @@ -1,5 +1,5 @@ ---- gmix/gmix.c.orig Fri Feb 19 18:30:49 1999 -+++ gmix/gmix.c Wed Mar 3 10:49:51 1999 +--- gmix/gmix.c.orig Sun Feb 21 12:10:17 1999 ++++ gmix/gmix.c Mon Mar 8 20:41:05 1999 @@ -94,6 +94,17 @@ /* * All, that is known about a mixer-device @@ -52,7 +52,7 @@ /* * several bitmasks describing the mixer */ -@@ -386,15 +400,15 @@ +@@ -386,15 +400,16 @@ { int cnt; device_info *new_device; @@ -67,7 +67,8 @@ } - } while (new_device); - num_mixers=cnt-1; -+ } while ((errno == EACCES) || (errno == EINVAL) || new_device); ++ } while ((errno == EACCES) || (errno == EINVAL) || (errno == ENXIO) \ ++ || new_device); } void free_one_device(gpointer a, gpointer b) |