[MPlayer-dev-eng] [PATCH] Non-blocking mp_msg
Alexander Strasser
eclipse7 at gmx.net
Thu Jun 9 10:14:32 CEST 2005
Hi,
Paul Pedaal wrote:
> There is a lot of fflush() in mp_msg making mplayer block when it can't write the status line to stdout for some reason. One can work around it by using the -quiet option, but I thought i'd try to fix it in the source.
>
> So I replaced the fflushes for stdout with my own nbfflush function that does a poll() and flushes only when it would be done without blocking.
>
> Mind that I am not a very experienced programmer and there may be something fundamentally wrong here. Thread safety maybe? At least it didn't dump core on my machine :P
I am not sure if we really need this at all.
But at least it may have portability issues i guess...
Alex (beastd)
More information about the MPlayer-dev-eng
mailing list