changeset 30764:0987402cd276

Fix cue_vcd_get_track_end to not change the current position.
author reimar
date Mon, 01 Mar 2010 19:57:42 +0000
parents 08a3814981a2
children 3e230b384997
files stream/stream_cue.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cue.c	Mon Mar 01 19:35:18 2010 +0000
+++ b/stream/stream_cue.c	Mon Mar 01 19:57:42 2010 +0000
@@ -479,11 +479,10 @@
 }
 
 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){