summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-17 00:23:48 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-17 00:23:48 +0000
commitaa234b197bce7c4e7a75f3a8e2ca813df298e499 (patch)
tree1594698b12dfe4d887675c1066333cc11d6674ce /mplayer.c
parent4332bed459567aa7a746131c56d5a07ba88c05b1 (diff)
downloadmpv-aa234b197bce7c4e7a75f3a8e2ca813df298e499.tar.bz2
mpv-aa234b197bce7c4e7a75f3a8e2ca813df298e499.tar.xz
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2942 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index b616eeeeca..b23d5f52c8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -79,6 +79,13 @@ int quiet=0;
#include <linux/rtc.h>
#endif
+#ifdef USE_TV
+#include "libmpdemux/tv.h"
+
+extern int tv_param_on;
+extern tvi_handle_t *tv_handler;
+#endif
+
//**************************************************************************//
// Config file
//**************************************************************************//
@@ -1820,6 +1827,25 @@ if(step_sec>0) {
frame_dropping=(frame_dropping+1)%3;
mp_msg(MSGT_CPLAYER,MSGL_V,"== drop: %d == \n",frame_dropping);
break;
+
+#ifdef USE_TV
+ case 'h':
+ if (tv_param_on == 1)
+ tv_step_channel(tv_handler, TV_CHANNEL_HIGHER);
+ break;
+ case 'l':
+ if (tv_param_on == 1)
+ tv_step_channel(tv_handler, TV_CHANNEL_LOWER);
+ break;
+ case 'n':
+ if (tv_param_on == 1)
+ tv_step_norm(tv_handler);
+ break;
+ case 'b':
+ if (tv_param_on == 1)
+ tv_step_chanlist(tv_handler);
+ break;
+#endif
}
} // keyboard event handler