[Mplayer-cvslog] CVS: main/libmpdemux tv.c,1.26,1.27

pl pl at mplayerhq.hu
Wed May 1 19:08:02 CEST 2002


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

Modified Files:
	tv.c 
Log Message:
patch by Jürgen Appel <jappel at linux01.gwdg.de>:
"There is a typo in libmpdemux/tv.c causing channel switching to behave
strange."


Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- tv.c	12 Apr 2002 10:40:38 -0000	1.26
+++ tv.c	1 May 2002 17:07:50 -0000	1.27
@@ -509,7 +509,7 @@
     {
 	if (tvh->channel-1 >= 0)
 	{
-	    cl = tvh->chanlist_s[tvh->channel--];
+	    cl = tvh->chanlist_s[--tvh->channel];
 	    mp_msg(MSGT_TV, MSGL_INFO, "Selected channel: %s (freq: %.3f)\n",
 		cl.name, (float)cl.freq/1000);
 	    tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16));
@@ -520,7 +520,7 @@
     {
 	if (tvh->channel+1 < chanlists[tvh->chanlist].count)
 	{
-	    cl = tvh->chanlist_s[tvh->channel++];
+	    cl = tvh->chanlist_s[++tvh->channel];
 	    mp_msg(MSGT_TV, MSGL_INFO, "Selected channel: %s (freq: %.3f)\n",
 		cl.name, (float)cl.freq/1000);
 	    tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16));




More information about the MPlayer-cvslog mailing list