diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-10 11:39:58 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-10 11:39:58 +0000 |
commit | 49d90f4d53336ea85bcdbf874a27846e9c768ae0 (patch) | |
tree | 49436e0364c0f41f5e14ee75fd089801f73dcda0 /stream | |
parent | 914401edfdf7d01b9ae7dd60ff5d3d91a19bade7 (diff) | |
download | mpv-49d90f4d53336ea85bcdbf874a27846e9c768ae0.tar.bz2 mpv-49d90f4d53336ea85bcdbf874a27846e9c768ae0.tar.xz |
Missing -1 in the FreeBSD code to get the first CD track number
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23286 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_cddb.c | 2 |
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; |