mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
fix off-by-one error message
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9216 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
79308f285d
commit
79905624ab
@ -1160,7 +1160,7 @@ static int control(priv_t *priv, int cmd, void *arg)
|
||||
if (req_chan >= priv->capability.channels)
|
||||
{
|
||||
mp_msg(MSGT_TV, MSGL_ERR, "Invalid input requested: %d, valid: 0-%d\n",
|
||||
req_chan, priv->capability.channels);
|
||||
req_chan, priv->capability.channels - 1);
|
||||
return(TVI_CONTROL_FALSE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user