[FFmpeg-cvslog] r17863 - trunk/libavdevice/alsa-audio-common.c

lucabe subversion
Sat Mar 7 19:17:13 CET 2009


Author: lucabe
Date: Sat Mar  7 19:17:13 2009
New Revision: 17863

Log:
Fix AVFMT_FLAG_NONBLOCK in alsa

Modified:
   trunk/libavdevice/alsa-audio-common.c

Modified: trunk/libavdevice/alsa-audio-common.c
==============================================================================
--- trunk/libavdevice/alsa-audio-common.c	Sat Mar  7 16:20:55 2009	(r17862)
+++ trunk/libavdevice/alsa-audio-common.c	Sat Mar  7 19:17:13 2009	(r17863)
@@ -68,7 +68,7 @@ av_cold int ff_alsa_open(AVFormatContext
     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) {




More information about the ffmpeg-cvslog mailing list