1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 20:34:58 +00:00

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
This commit is contained in:
reimar 2007-07-29 15:35:52 +00:00
parent 5bcef8f16b
commit 1c67c05e8c

View File

@ -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;