Browse Source

Fix AVFMT_FLAG_NONBLOCK in alsa

Originally committed as revision 17863 to svn://svn.ffmpeg.org/ffmpeg/trunk
Luca Abeni 16 years ago
parent
commit
3cac2f1301
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libavdevice/alsa-audio-common.c

+ 1 - 1
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;
     s->frame_size = av_get_bits_per_sample(*codec_id) / 8 * channels;
 
 
     if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
     if (ctx->flags & AVFMT_FLAG_NONBLOCK) {
-        flags = O_NONBLOCK;
+        flags = SND_PCM_NONBLOCK;
     }
     }
     res = snd_pcm_open(&h, audio_device, mode, flags);
     res = snd_pcm_open(&h, audio_device, mode, flags);
     if (res < 0) {
     if (res < 0) {