Fix bug that made cdcontrol play <track> play <track> - 1
This commit is contained in:
parent
1352a54255
commit
07796aea23
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112559
@ -581,6 +581,8 @@ int play (char *arg)
|
|||||||
else if (tr1 > n)
|
else if (tr1 > n)
|
||||||
tr1 = n;
|
tr1 = n;
|
||||||
|
|
||||||
|
tr1--;
|
||||||
|
|
||||||
if (msf) {
|
if (msf) {
|
||||||
tm = toc_buffer[tr1].addr.msf.minute;
|
tm = toc_buffer[tr1].addr.msf.minute;
|
||||||
ts = toc_buffer[tr1].addr.msf.second;
|
ts = toc_buffer[tr1].addr.msf.second;
|
||||||
@ -597,8 +599,6 @@ int play (char *arg)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr1--;
|
|
||||||
|
|
||||||
f1 += tf;
|
f1 += tf;
|
||||||
if (f1 >= 75) {
|
if (f1 >= 75) {
|
||||||
s1 += f1 / 75;
|
s1 += f1 / 75;
|
||||||
|
Loading…
Reference in New Issue
Block a user