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
This commit is contained in:
pl 2002-05-01 17:07:50 +00:00
parent 9adb881e61
commit 89d0c7a60f
1 changed files with 2 additions and 2 deletions

View File

@ -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));