Mercurial > mplayer.hg
diff mplayer.c @ 23477:15710094cb15
implement "bind sections"
allows to bind one input key to several slave commands (independently for each section)
as shown below:
RIGHT seek +10
RIGHT {tv} tv_step_channel 1
RIGHT {dvdnav} dvdnav 4
Currenlty only "tv" section added.
patch by Otvos Attila oattila at chello dot hu
author | voroshil |
---|---|
date | Thu, 07 Jun 2007 18:06:53 +0000 |
parents | 44746cbd4e5b |
children | a6c619ee9d30 |
line wrap: on
line diff
--- a/mplayer.c Thu Jun 07 17:23:23 2007 +0000 +++ b/mplayer.c Thu Jun 07 18:06:53 2007 +0000 @@ -3320,6 +3320,10 @@ } #endif +mp_input_set_section(NULL); +//TODO: add desired (stream-based) sections here +if (mpctx->stream->type==STREAMTYPE_TV) mp_input_set_section("tv"); + //==================== START PLAYING ======================= if(loop_times>1) loop_times--; else