[MPlayer-cvslog] CVS: main/libmpdemux tv.c,1.74,1.75

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Nov 10 21:31:29 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv31178

Modified Files:
	tv.c 
Log Message:
implement norm switching, which was already documented??


Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- tv.c	12 Sep 2005 22:48:14 -0000	1.74
+++ tv.c	10 Nov 2005 20:31:27 -0000	1.75
@@ -836,6 +836,16 @@
 
 int tv_step_norm(tvi_handle_t *tvh)
 {
+  tvh->norm++;
+  if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM,
+                              &tvh->norm) != TVI_CONTROL_TRUE) {
+    tvh->norm = 0;
+    if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM,
+                                &tvh->norm) != TVI_CONTROL_TRUE) {
+      mp_msg(MSGT_TV, MSGL_ERR, "Error: Cannot set norm!\n");
+      return 0;
+    }
+  }
     return(1);
 }
 




More information about the MPlayer-cvslog mailing list