[FFmpeg-devel] [PATCH] What is missing for working AVFMT_FLAG_NONBLOCK?

Michael Niedermayer michaelni
Tue Mar 3 17:13:11 CET 2009


On Tue, Mar 03, 2009 at 05:01:16PM +0100, Luca Abeni wrote:
> Hi Michael,
> 
> Michael Niedermayer wrote:
> [...]
> >> I tested capturing some audio with the two attached patches (without them,
> >> nothing changes...) and it seems to me that this is working (easy,,, I
> >> only have a single input ;-). I see a near-100% CPU load, so I guess a
> >> usleep() somewhere (or something similar) is really needed.
> > 
> > sched_yield() should be added IMHO, usleep() just feels like the wrong thing
> 
> AFAIK, sched_yield() on non real-time task is not a good idea (it has an
> undefined behaviour).

which page of POSIX says that?, i cant find it ...


[...]

> In the meanwhile, I have no objections for your latest patch (if it breaks
> something we'll fix it in some way).

will commit today :)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090303/1398df4d/attachment.pgp>



More information about the ffmpeg-devel mailing list