[Mplayer-cvslog] CVS: main/libmpdemux tv.c,1.52,1.53

Alex Beregszaszi alex at mplayerhq.hu
Wed Apr 9 18:08:06 CEST 2003


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

Modified Files:
	tv.c 
Log Message:
channel finetuning cmdline support, patch by Ivan Szanto <szivan at duticai.TWI.TUDelft.NL>

Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- tv.c	23 Mar 2003 15:05:14 -0000	1.52
+++ tv.c	9 Apr 2003 16:07:45 -0000	1.53
@@ -298,6 +298,17 @@
 	        if (tv_channel_current->freq == 0)
 		    mp_msg(MSGT_TV, MSGL_ERR, "Couldn't find frequency for channel %s (%s)\n",
 				    tv_channel_current->number, tv_channel_current->name);
+		else {
+		  sep = strchr(tv_channel_current->name, '-');
+		  if ( !sep ) sep = strchr(tv_channel_current->name, '+');
+
+		  if ( sep ) {
+		    i = atoi (sep+1);
+		    if ( sep[0] == '+' ) tv_channel_current->freq += i * 100;
+		    if ( sep[0] == '-' ) tv_channel_current->freq -= i * 100;
+		    sep[0] = '\0';
+		  }
+		}
 
 		/*mp_msg(MSGT_TV, MSGL_INFO, "-- Detected channel %s - %s (%5.3f)\n",
 				tv_channel_current->number, tv_channel_current->name,



More information about the MPlayer-cvslog mailing list