[MPlayer-dev-eng] Fix for Mplayer -slave mode

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Feb 7 17:10:05 CET 2009


On Sat, Feb 07, 2009 at 10:54:31AM -0500, Jesse L. Zamora wrote:
> On Friday 06 February 2009 04:19:48 pm Reimar Döffinger wrote:
> > On Fri, Feb 06, 2009 at 03:21:23PM -0500, Jesse L. Zamora wrote:
> > > Here's a very small patch that fixes the -slave mode in Mplayer; when
> > > Mplayer
> > > is being used as a backend for an application and the user presses q or
> > > Esc, Mplayer gets the key press and closes.
> >
> > Disabling input is not the purpose of -slave, it only enables command
> > processing.
> > A separate option similar to -noconsolecontrols but only for window
> > input would be a possiblility, but better would probably be an option to
> > disable the default key bindings.
> > This also leads to the current solution others use: with
> > -input conf=/.../input.conf
> > provide a input.conf that removes all existing key bindings.
> 
> Oh! I didn't know that I could do that! That really helps me. But do you have 
> an example of an input.conf file?

etc/input.conf
The problem is that there are a lot of default key bindings, you'll need
a lot of entries to get rid of all.
You'd want an input.conf with stuff like that:
q ignore
ESC ignore
ENTER ignore
...



More information about the MPlayer-dev-eng mailing list