[FFmpeg-cvslog] r17863 - trunk/libavdevice/alsa-audio-common.c
Fri Nov 20 14:33:56 CET 2009
On Fri, Nov 20, 2009 at 09:35:16AM +0100, Luca Abeni wrote:
> Ivo wrote:
>>> What's the particular problem? Has alsa some problems with
>>> non-blocking output, is libavformat broken in this regard,
>>> or is it an application issue?
>>> Maybe it is a problem with a particular driver? I am using
>>> alsa playback right now, and it seems to work correctly:
>>> ffmpeg -re -i file.mp3 -f alsa hw
>> I forgot the -re option. With that, it works correctly. Well, at least I
>> got to use git-bisect for the first time :)
>> Nevertheless, my fix might be the correct behaviour anyway, because the
>> documentation says:
>> #define AVFMT_FLAG_NONBLOCK 0x0004 ///< Do not block when reading
>> packets from input.
>> So it's an input-only flag, not an output flag.
> You are right; there is an inconsistency between behaviour and
> However, I do not know if the error is in the documentation or in the
> behaviour; maybe Michael can comment on this (he is the one who asked for
> nonblocking behaviour).
id say setting AVFMT_FLAG_NONBLOCK for output has undefined behaviour
we could change that and define it in some sane way of course ...
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The misfortune of the wise is better than the prosperity of the fool.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-cvslog