Do not print duplicate breakpoints (bug #5965).

This commit is contained in:
Svend Sorensen
2006-02-14 19:47:40 +00:00
parent c9775d368c
commit a894befb57

View File

@@ -75,6 +75,7 @@ void print_breaks (Cd *cd, int gaps)
{
int i;
long b;
long pg;
Track *track;
for (i = 1; i <= cd_get_ntrack(cd); i++) {
@@ -95,8 +96,10 @@ void print_breaks (Cd *cd, int gaps)
* this could be a suprising default
*/
if (1 < i || gaps == SPLIT) {
b += track_get_index(track, 1) - track_get_zero_pre(track);
print_breakpoint(b);
pg = track_get_index(track, 1) - track_get_zero_pre(track);
if (0 < pg) {
print_breakpoint(b + pg);
}
}
}
}