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
1 changed files with 1 additions and 1 deletions

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;