alsa_writer: use non-blocking open mode.
authorAndre <maan@p133.(none)>
Wed, 31 May 2006 21:01:08 +0000 (23:01 +0200)
committerAndre <maan@p133.(none)>
Wed, 31 May 2006 21:01:08 +0000 (23:01 +0200)
fixes hangs in para_audiod.

alsa_writer.c

index 5c3290731dd3aff35ddc9b4a9929236e9b0df36e..466f1e8d5cbfa53ed124f1a8a89d30808ed27d56 100644 (file)
@@ -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,
        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)
        if (err < 0)
                return -E_PCM_OPEN;
        if ((err = snd_pcm_info(pad->handle, info)) < 0)