[MPlayer-dev-eng] [PATCH] Non-blocking mp_msg

Oded Shimon ods15 at ods15.dyndns.org
Fri Jun 10 19:21:21 CEST 2005


On Thu, Jun 09, 2005 at 08:29:54AM -0400, Rich Felker wrote:
> On Tue, Jun 07, 2005 at 07:01:59PM +0300, 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.
> 
> This is nonportable and unnecessary. Run with -quiet if you have crap
> causing your statusline to block...

I actually LIKE the fact that it blocks when the tty is blocked. When I 
watch MPlayer full screen, if someone calls me on IRC, I get a screen 
visual beep, which causes MPlayer's pty and MPlayer itself to freeze for 1 
second, making me notice that I was called..

- ods15




More information about the MPlayer-dev-eng mailing list