[Mplayer-cvslog] CVS: main/libmpdemux tv.c,1.9,1.10

Alex Beregszaszi alex at mplayer.dev.hu
Sun Nov 11 17:29:28 CET 2001


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

Modified Files:
	tv.c 
Log Message:
don't set freq if channel isn't capable

Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- tv.c	11 Nov 2001 15:45:23 -0000	1.9
+++ tv.c	11 Nov 2001 16:29:26 -0000	1.10
@@ -226,7 +226,7 @@
     funcs->control(tvh->priv, TVI_CONTROL_SPC_SET_INPUT, &tv_param_input);
 
     /* we need to set frequency */
-    if (tv_param_freq)
+    if (tv_param_freq && (funcs->control(tvh->priv, TVI_CONTROL_IS_TUNER, 0) == TVI_CONTROL_TRUE))
     {
 	unsigned long freq = atof(tv_param_freq)*16;
 




More information about the MPlayer-cvslog mailing list