[Mplayer-cvslog] CVS: main mplayer.c,1.708,1.709

Gabucino gabucino at mplayerhq.hu
Mon Aug 4 11:13:40 CEST 2003


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

Modified Files:
	mplayer.c 
Log Message:
I'd like to change tv tuner frequency in the slave mode. So this patch
helps me.

Patch by Kir Kostuchenko <kir at users.sourceforge.net>


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.708
retrieving revision 1.709
diff -u -r1.708 -r1.709
--- mplayer.c	22 Jul 2003 10:46:22 -0000	1.708
+++ mplayer.c	4 Aug 2003 09:12:40 -0000	1.709
@@ -2777,6 +2777,14 @@
 	frame_dropping = v > 2 ? 2 : v;
     } break;
 #ifdef USE_TV
+    case MP_CMD_TV_SET_FREQ :  {
+      if (file_format == DEMUXER_TYPE_TV)
+        tv_set_freq((tvi_handle_t*)(demuxer->priv), cmd->args[0].v.f * 16.0);
+    } break;
+    case MP_CMD_TV_SET_NORM :  {
+      if (file_format == DEMUXER_TYPE_TV)
+        tv_set_norm((tvi_handle_t*)(demuxer->priv), cmd->args[0].v.s);
+    } break;
     case MP_CMD_TV_STEP_CHANNEL :  {
       if (file_format == DEMUXER_TYPE_TV) {
 	int v = cmd->args[0].v.i;



More information about the MPlayer-cvslog mailing list