Originally committed as revision 17863 to svn://svn.ffmpeg.org/ffmpeg/trunk
Luca Abeni authored on 2009/03/08 03:17:13... | ... |
@@ -68,7 +68,7 @@ av_cold int ff_alsa_open(AVFormatContext *ctx, int mode, |
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) { |