Commit 125c801a authored by lucabe's avatar lucabe

Fix AVFMT_FLAG_NONBLOCK in alsa


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17863 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c7c3d423
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment