mirror of https://github.com/mpv-player/mpv
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:
parent
9adb881e61
commit
89d0c7a60f
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue