diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-07 18:06:53 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-07 18:06:53 +0000 |
commit | 252f69abf7e53c549ab79f373bc5496221f87c92 (patch) | |
tree | 7d05d22c1509b99fa383692c672853de9bc5f18a /mplayer.c | |
parent | 5bc80d85dc7ee95b7227daff66899120038b678b (diff) | |
download | mpv-252f69abf7e53c549ab79f373bc5496221f87c92.tar.bz2 mpv-252f69abf7e53c549ab79f373bc5496221f87c92.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23497 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3320,6 +3320,10 @@ if ( use_gui ) { } #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 |