summaryrefslogtreecommitdiffstats
path: root/stream/stream_cddb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_cddb.c')
-rw-r--r--stream/stream_cddb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c
index 28b2687020..27b037e811 100644
--- a/stream/stream_cddb.c
+++ b/stream/stream_cddb.c
@@ -114,7 +114,7 @@ read_toc(const char *dev) {
{
struct ioc_toc_header tochdr;
ioctl(drive, CDIOREADTOCHEADER, &tochdr);
- first = tochdr.starting_track; last = tochdr.ending_track;
+ first = tochdr.starting_track - 1; last = tochdr.ending_track;
}
for (i = first; i <= last; i++) {
struct ioc_read_toc_single_entry tocentry;