[Mplayer-cvslog] CVS: main mplayer.c,1.318,1.319

Alex Beregszaszi alex at mplayer.dev.hu
Sat Nov 17 01:23:51 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv11567

Modified Files:
	mplayer.c 
Log Message:
added support for norm=,chanlist=,channel= and also on-the-fly channel chaning with keys

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.318
retrieving revision 1.319
diff -u -r1.318 -r1.319
--- mplayer.c	14 Nov 2001 11:16:45 -0000	1.318
+++ mplayer.c	17 Nov 2001 00:23:48 -0000	1.319
@@ -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
 




More information about the MPlayer-cvslog mailing list