Revision 3cac2f13 libavdevice/alsa-audio-common.c

View differences:

libavdevice/alsa-audio-common.c
68 68
    s->frame_size = av_get_bits_per_sample(*codec_id) / 8 * channels;
69 69

  
70 70
    if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
71
        flags = O_NONBLOCK;
71
        flags = SND_PCM_NONBLOCK;
72 72
    }
73 73
    res = snd_pcm_open(&h, audio_device, mode, flags);
74 74
    if (res < 0) {

Also available in: Unified diff