diff options
Diffstat (limited to 'usr.bin/cdio/rip.c')
-rw-r--r-- | usr.bin/cdio/rip.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/cdio/rip.c b/usr.bin/cdio/rip.c index 7a2029c2551..db26a990e04 100644 --- a/usr.bin/cdio/rip.c +++ b/usr.bin/cdio/rip.c @@ -489,14 +489,6 @@ rip_tracks_loop(struct track_pair *tp, u_int n_tracks, toc_buffer[i].track, (info.isaudio) ? "wav" : "dat"); - error = next_track(&info); - if (error == NXTRACK_SKIP) - continue; - else if (error == NXTRACK_FAIL) { - error = -1; - break; - } - if (msf) { info.start_lba = msf2lba( toc_buffer[i].addr.msf.minute, @@ -511,6 +503,14 @@ rip_tracks_loop(struct track_pair *tp, u_int n_tracks, info.end_lba = toc_buffer[i + 1].addr.lba; } + error = next_track(&info); + if (error == NXTRACK_SKIP) + continue; + else if (error == NXTRACK_FAIL) { + error = -1; + break; + } + error = read_track(fd, &info); close(info.fd); |