summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 19:57:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 19:57:42 +0000
commit592af7cd2c9c3ff1f0469924c0141dbfc912e6f9 (patch)
tree643d23b4df6246daf8623a3feb8193f02692d647 /stream
parentf2740450d3499ab48e58e24aeac1d93fd593b224 (diff)
downloadmpv-592af7cd2c9c3ff1f0469924c0141dbfc912e6f9.tar.bz2
mpv-592af7cd2c9c3ff1f0469924c0141dbfc912e6f9.tar.xz
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
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cue.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index 9431621f32..81fa038648 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -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){