Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cd-info: don't assume that the first track number is 1.
  • Loading branch information
vext01 committed Dec 2, 2018
1 parent d04c48e commit 49b1910
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cd-info.c
Expand Up @@ -1108,7 +1108,9 @@ main(int argc, char *argv[])
if (-1 == first_data) first_data = i;
}
/* skip to leadout? */
if (i == i_tracks) i = CDIO_CDROM_LEADOUT_TRACK-1;
if (i == i_first_track + i_tracks - 1) {
i = CDIO_CDROM_LEADOUT_TRACK;
}
}

if (cdio_is_discmode_cdrom(discmode)) {
Expand Down

0 comments on commit 49b1910

Please sign in to comment.