# HG changeset patch # User Chris Cannam # Date 1337165079 -3600 # Node ID cc18e9a13fe862f24257eb282e0da8e1f578502c # Parent d6bb46a1e70c80be91bb58dd9c71abfe7e0ad71c Fix failure to set hasTimestamp on final part diff -r d6bb46a1e70c -r cc18e9a13fe8 songparts/SongParts.cpp --- a/songparts/SongParts.cpp Fri May 11 17:37:49 2012 +0100 +++ b/songparts/SongParts.cpp Wed May 16 11:44:39 2012 +0100 @@ -1861,6 +1861,7 @@ } int ind = finalParts[finalParts.size()-1].indices[0]; + seg.hasTimestamp = true; seg.timestamp = quantisedChromagram[ind].timestamp; seg.hasDuration = true; seg.duration = quantisedChromagram[quantisedChromagram.size()-1].timestamp-quantisedChromagram[ind].timestamp;