[MPlayer-cvslog] r23286 - trunk/stream/stream_cddb.c

reimar subversion at mplayerhq.hu
Thu May 10 13:39:59 CEST 2007


Author: reimar
Date: Thu May 10 13:39:58 2007
New Revision: 23286

Log:
Missing -1 in the FreeBSD code to get the first CD track number


Modified:
   trunk/stream/stream_cddb.c

Modified: trunk/stream/stream_cddb.c
==============================================================================
--- trunk/stream/stream_cddb.c	(original)
+++ trunk/stream/stream_cddb.c	Thu May 10 13:39:58 2007
@@ -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;



More information about the MPlayer-cvslog mailing list