Fixed off-by-one cuebreakpoints track printing.
This commit is contained in:
@@ -46,7 +46,7 @@ void print_breaks (Cd *cd)
|
|||||||
long b;
|
long b;
|
||||||
Track *track;
|
Track *track;
|
||||||
|
|
||||||
for (i = 1; i < cd_get_ntrack(cd); i++) {
|
for (i = 1; i <= cd_get_ntrack(cd); i++) {
|
||||||
track = cd_get_track(cd, i);
|
track = cd_get_track(cd, i);
|
||||||
/* don't print zero indexes */
|
/* don't print zero indexes */
|
||||||
b = track_get_start(track) + track_get_index(track, 1) - track_get_zero_pre(track);
|
b = track_get_start(track) + track_get_index(track, 1) - track_get_zero_pre(track);
|
||||||
|
|||||||
@@ -388,7 +388,6 @@ int main (int argc, char **argv)
|
|||||||
else if (0 == strcmp("toc", optarg))
|
else if (0 == strcmp("toc", optarg))
|
||||||
format = TOC;
|
format = TOC;
|
||||||
break;
|
break;
|
||||||
/* TODO add track selection */
|
|
||||||
case 'n':
|
case 'n':
|
||||||
trackno = atoi(optarg);
|
trackno = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user