Fix cue_vcd_get_track_end to not change the current position.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30806 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-03-01 19:57:42 +00:00
parent f2740450d3
commit 592af7cd2c
1 changed files with 3 additions and 4 deletions

View File

@ -479,11 +479,10 @@ static int cue_vcd_seek_to_track (int track){
}
static int cue_vcd_get_track_end (int track){
cue_current_pos.frame = tracks[track].frame;
cue_current_pos.second = tracks[track].second;
cue_current_pos.minute = tracks[track].minute;
int sector = cue_msf_2_sector(tracks[track].minute, tracks[track].second,
tracks[track].frame);
return VCD_SECTOR_DATA * cue_get_msf();
return VCD_SECTOR_DATA * sector;
}
static void cue_vcd_read_toc(void){