From: Andre Date: Wed, 31 May 2006 21:01:08 +0000 (+0200) Subject: alsa_writer: use non-blocking open mode. X-Git-Tag: v0.2.14~93 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=53d2ded13e848052f8d84fae2f29d0dcb46898cc;hp=8cec3d1edb26b4861e2b5bdbb9f70241cdd7f03b alsa_writer: use non-blocking open mode. fixes hangs in para_audiod. --- diff --git a/alsa_writer.c b/alsa_writer.c index 5c329073..466f1e8d 100644 --- a/alsa_writer.c +++ b/alsa_writer.c @@ -83,7 +83,7 @@ static int alsa_open(struct writer_node *w) w->private_data = pad; snd_pcm_info_alloca(&info); err = snd_pcm_open(&pad->handle, conf->device_arg, - SND_PCM_STREAM_PLAYBACK, 0); + SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK); if (err < 0) return -E_PCM_OPEN; if ((err = snd_pcm_info(pad->handle, info)) < 0)