summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-01 17:07:50 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-05-01 17:07:50 +0000
commit89d0c7a60f67b15467a475025479be81e97f2bfa (patch)
tree74a2ce3477536c63f2df917f6368310442b1584f /libmpdemux
parent9adb881e61d484467beeee87755f1c512fd5ebcc (diff)
downloadmpv-89d0c7a60f67b15467a475025479be81e97f2bfa.tar.bz2
mpv-89d0c7a60f67b15467a475025479be81e97f2bfa.tar.xz
patch by Jürgen Appel <jappel@linux01.gwdg.de>:
"There is a typo in libmpdemux/tv.c causing channel switching to behave strange." git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5924 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/tv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c
index a7ad398055..458fe1e949 100644
--- a/libmpdemux/tv.c
+++ b/libmpdemux/tv.c
@@ -509,7 +509,7 @@ int tv_step_channel(tvi_handle_t *tvh, int direction)
{
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 @@ int tv_step_channel(tvi_handle_t *tvh, int direction)
{
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));