summaryrefslogtreecommitdiff
path: root/libavdevice/alsa-audio-common.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2009-03-07 18:17:13 +0000
committerLuca Abeni <lucabe72@email.it>2009-03-07 18:17:13 +0000
commit3cac2f13019f017afae7f5a1fcef21c540ac2e55 (patch)
tree84656f47128166abd49ae9b899a22362544a5ff8 /libavdevice/alsa-audio-common.c
parent743b3890744609953fe60ce562308fb299859ace (diff)
Fix AVFMT_FLAG_NONBLOCK in alsa
Originally committed as revision 17863 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/alsa-audio-common.c')
-rw-r--r--libavdevice/alsa-audio-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
index 9616d8aa4b..98127249a6 100644
--- a/libavdevice/alsa-audio-common.c
+++ b/libavdevice/alsa-audio-common.c
@@ -68,7 +68,7 @@ av_cold int ff_alsa_open(AVFormatContext *ctx, int mode,
s->frame_size = av_get_bits_per_sample(*codec_id) / 8 * channels;
if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
- flags = O_NONBLOCK;
+ flags = SND_PCM_NONBLOCK;
}
res = snd_pcm_open(&h, audio_device, mode, flags);
if (res < 0) {