summaryrefslogtreecommitdiffstats
path: root/stream/vcd_read_darwin.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 15:35:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-29 15:35:52 +0000
commit1c67c05e8cc1f94c52f13c408db229cfae1ccd04 (patch)
tree44083533226d040cbc4e6855067fc78c2cc20dc2 /stream/vcd_read_darwin.h
parent5bcef8f16be025a081a7379a67a4da5d83b0a96e (diff)
downloadmpv-1c67c05e8cc1f94c52f13c408db229cfae1ccd04.tar.bz2
mpv-1c67c05e8cc1f94c52f13c408db229cfae1ccd04.tar.xz
Make vcd_get_track_end actually return the end, not the start on Darwin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23915 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/vcd_read_darwin.h')
-rw-r--r--stream/vcd_read_darwin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/vcd_read_darwin.h b/stream/vcd_read_darwin.h
index 4a66b5d823..9eb3e9662a 100644
--- a/stream/vcd_read_darwin.h
+++ b/stream/vcd_read_darwin.h
@@ -81,7 +81,7 @@ int vcd_get_track_end(mp_vcd_priv_t* vcd, int track)
//read track info
memset( &vcd->entry, 0, sizeof(vcd->entry));
vcd->entry.addressType = kCDTrackInfoAddressTypeTrackNumber;
- vcd->entry.address = track<(hdr.lastTrackNumberInLastSessionLSB+1)?(track):CDROM_LEADOUT;
+ vcd->entry.address = track<hdr.lastTrackNumberInLastSessionLSB?track+1:CDROM_LEADOUT;
vcd->entry.bufferLength = sizeof(entry);
vcd->entry.buffer = &entry;