[MPlayer-cvslog] r24149 - in trunk: input/input.c mencoder.c osdep/getch2-win.c osdep/getch2.c osdep/getch2.h

Rich Felker dalias at aerifal.cx
Sat Aug 25 18:03:24 CEST 2007


On Sat, Aug 25, 2007 at 06:28:08AM +0200, uau wrote:
> Author: uau
> Date: Sat Aug 25 06:28:08 2007
> New Revision: 24149
> 
> Log:
> Make terminal input work more like VO key input
> 
> The Unix version of getch2() could either return an internally buffered
> key or do a second-level select() in addition to the input.c one and
> then read more data. Change getch2() to always add all read keys with
> mplayer_put_key() (like video output window keyboard input does) and
> remove the internal select() from the Unix version. Make input.c call
> mplayer_get_key() directly.
> 
> The primary motivation for this change is to make combining multiple
> event sources under one select() easier. Now getch2() only needs to be
> called when the corresponding fd is readable, and it will be possible to
> handle events from X-based VOs with the same code.

This is a very nice commit message.

Rich



More information about the MPlayer-cvslog mailing list