Mercurial > mplayer.hg
changeset 9215:5971342e9302
fix off-by-one error message
author | colin |
---|---|
date | Sun, 02 Feb 2003 02:28:59 +0000 |
parents | efa14c62e5e6 |
children | 7c536a513ce9 |
files | libmpdemux/tvi_v4l.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/tvi_v4l.c Sun Feb 02 02:14:42 2003 +0000 +++ b/libmpdemux/tvi_v4l.c Sun Feb 02 02:28:59 2003 +0000 @@ -1160,7 +1160,7 @@ 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); }