summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-07 18:06:53 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-07 18:06:53 +0000
commit252f69abf7e53c549ab79f373bc5496221f87c92 (patch)
tree7d05d22c1509b99fa383692c672853de9bc5f18a /mplayer.c
parent5bc80d85dc7ee95b7227daff66899120038b678b (diff)
downloadmpv-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 0c6008b100..e79f2586aa 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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