Explorar el Código

Do not print duplicate breakpoints (bug #5965).

master
Svend Sorensen hace 18 años
padre
commit
a894befb57
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. +5
    -2
      src/tools/cuebreakpoints.c

+ 5
- 2
src/tools/cuebreakpoints.c Ver fichero

@@ -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);
}
}
}
}


Cargando…
Cancelar
Guardar