changeset 23268:686107ddaab5

Missing -1 in the FreeBSD code to get the first CD track number
author reimar
date Thu, 10 May 2007 11:39:58 +0000
parents a59deddcd6fc
children 6606c4f5c78c
files stream/stream_cddb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cddb.c	Thu May 10 09:43:02 2007 +0000
+++ b/stream/stream_cddb.c	Thu May 10 11:39:58 2007 +0000
@@ -114,7 +114,7 @@
 	{
 	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;