changeset 5923:4241047fb315

patch by J¸«ärgen Appel <jappel@linux01.gwdg.de>: "There is a typo in libmpdemux/tv.c causing channel switching to behave strange."
author pl
date Wed, 01 May 2002 17:07:50 +0000
parents 30eea1bd1b64
children 27d1f7faefd4
files libmpdemux/tv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tv.c	Wed May 01 14:42:42 2002 +0000
+++ b/libmpdemux/tv.c	Wed May 01 17:07:50 2002 +0000
@@ -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));