[xiph-cvs] cvs commit: ao/src/plugins/alsa09 ao_alsa09.c
Stan Seibert
volsung at xiph.org
Sat Dec 8 19:35:22 PST 2001
volsung 01/12/08 19:35:21
Modified: src/plugins/alsa09 ao_alsa09.c
Log:
Put back NONBLOCK flag in the plugin_test() function so we don't get stuck
while determining if the device is in use.
Revision Changes Path
1.10 +4 -1 ao/src/plugins/alsa09/ao_alsa09.c
Index: ao_alsa09.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/plugins/alsa09/ao_alsa09.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ao_alsa09.c 2001/12/07 21:00:43 1.9
+++ ao_alsa09.c 2001/12/09 03:35:21 1.10
@@ -71,7 +71,10 @@
snd_pcm_t *handle;
int err;
- err = snd_pcm_open(&handle, "default", SND_PCM_STREAM_PLAYBACK, 0);
+ /* Use nonblock flag when testing to avoid getting stuck if the device
+ is in use. */
+ err = snd_pcm_open(&handle, "default", SND_PCM_STREAM_PLAYBACK,
+ SND_PCM_NONBLOCK);
if (err != 0)
return 0; /* Cannot use this plugin with default parameters */
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list