Use the first INDEX in each TRACK section, instead of the last, for the
start time. This preserves the original CD layout (including gaps
between tracks), and avoids skipping sections of songs in more exotic
cuesheets (eg musical suite tracks).

Fixes 0004355 and 0003359
---
 src/playlist/cue/CueParser.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx
index 80bf79b..e0c84a0 100644
--- a/src/playlist/cue/CueParser.cxx
+++ b/src/playlist/cue/CueParser.cxx
@@ -273,6 +273,7 @@ CueParser::Feed2(char *p)
                }
 
                current->SetStartTime(SongTime::FromMS(position_ms));
+               state = IGNORE_TRACK;
        }
 }
 
-- 
2.5.0

_______________________________________________
mpd-devel mailing list
mpd-devel@musicpd.org
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to