diff mplayer.c @ 2941:60c1b7c0ea21

added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys
author alex
date Sat, 17 Nov 2001 00:23:48 +0000
parents 283eab7c4c8e
children 8bf21c807656
line wrap: on
line diff
--- a/mplayer.c	Fri Nov 16 23:17:52 2001 +0000
+++ b/mplayer.c	Sat Nov 17 00:23:48 2001 +0000
@@ -79,6 +79,13 @@
 #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 @@
       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