From 378a80e922acb7d07e6d192dc42205510e99b97f Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 23 Dec 1999 23:46:48 +0000 Subject: Fix a problem where with 1-track repeat enabled, sometimes the next track will begin playing after the current one ends rather than repeating the current one. PR: 12001 Submitted by: Ken Lui --- audio/wmcdplay/files/patch-aa | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/audio/wmcdplay/files/patch-aa b/audio/wmcdplay/files/patch-aa index c26b4a8..f4dabd1 100644 --- a/audio/wmcdplay/files/patch-aa +++ b/audio/wmcdplay/files/patch-aa @@ -1,5 +1,5 @@ ---- cdctl.h.orig Sat Sep 5 11:11:26 1998 -+++ cdctl.h Thu Nov 25 17:35:34 1999 +--- cdctl.h.orig Sat Sep 5 10:11:26 1998 ++++ cdctl.h Thu Dec 23 16:31:59 1999 @@ -30,7 +30,8 @@ #include #include @@ -175,7 +175,7 @@ for(int i=0;i<=cd_tracks;i++){ if(i==cd_tracks) te.cdte_track=CDROM_LEADOUT; -@@ -320,10 +346,11 @@ +@@ -320,35 +346,42 @@ else cd_len = this_addr; } @@ -183,13 +183,20 @@ } - void trackinfo(struct cdrom_subchnl *subchnl){ + void trackinfo(struct cd_sub_channel_info *subchnl){ ++ int currenttrack = status_track; ++ if(status_state==ssPlaying || status_state==ssPaused){ - status_pos=((subchnl->cdsc_absaddr.msf.minute) * 60 + subchnl->cdsc_absaddr.msf.second) * 75 + subchnl->cdsc_absaddr.msf.frame - CD_MSF_OFFSET; + status_pos=((subchnl->what.position.absaddr.msf.minute) * 60 + subchnl->what.position.absaddr.msf.second) * 75 + subchnl->what.position.absaddr.msf.frame - CD_MSF_OFFSET; for(status_track=0;status_track