From 3cac2f13019f017afae7f5a1fcef21c540ac2e55 Mon Sep 17 00:00:00 2001
From: Luca Abeni <lucabe72@email.it>
Date: Sat, 7 Mar 2009 18:17:13 +0000
Subject: [PATCH] Fix AVFMT_FLAG_NONBLOCK in alsa

Originally committed as revision 17863 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavdevice/alsa-audio-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
index 9616d8aa4b7..98127249a68 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) {
-- 
GitLab