1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 22:36:55 +00:00

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

View File

@ -509,7 +509,7 @@ int tv_step_channel(tvi_handle_t *tvh, int direction)
{ {
if (tvh->channel-1 >= 0) 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", mp_msg(MSGT_TV, MSGL_INFO, "Selected channel: %s (freq: %.3f)\n",
cl.name, (float)cl.freq/1000); cl.name, (float)cl.freq/1000);
tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16)); 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) 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", mp_msg(MSGT_TV, MSGL_INFO, "Selected channel: %s (freq: %.3f)\n",
cl.name, (float)cl.freq/1000); cl.name, (float)cl.freq/1000);
tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16)); tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16));