[MPlayer-dev-eng] [PATCH-RFC] ""one input key more commands" feature for default key bindings

Vladimir Voroshilov voroshil at gmail.com
Wed Jul 25 15:04:48 CEST 2007


2007/7/25, Attila Kinali <attila at kinali.ch>:
> On Thu, 19 Jul 2007 19:43:54 +0700
> "Vladimir Voroshilov" <voroshil at gmail.com> wrote:
>
> > 2007/7/19, Vladimir Voroshilov <voroshil at gmail.com>:
> > > Hi, All
> > >
> > > Nice feature, called "one input key more commands in m/l", is working
> > > only for input.conf file.
>
> I don't really understand what you mean here. Can you explain
> that a little bit?
>

Well. Some time ago new feature was added to MPlayer (See "one input
key more commands" thread in mplayer-dev-eng m/l)
It allows can to specify in input.conf:
LEFT {tv} tv_step_channel -1
LEFT seek -10

In this sampe, if "tv" section (=STREAMTYPE_TV) is active then
"tv_step_channel -1" will be called and "seek -10" - otherwise.

In other words user can bind one input key to different slave commands
(usually one slave per stream type).

Support for new section can be added with similar line in mplayer.c:
"if (mpctx->stream->type==STREAMTYPE_TV) mp_input_set_section("tv");"
(Currently only "tv" section for STREAMTYPE_TV was added)

My patch allows to use the same syntax in input.c, i.e. add default,
out-of-box binding of one key to different slaves.

-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719



More information about the MPlayer-dev-eng mailing list