Merge pull request #66 from DanielSWolf/bugfix/#65-modification-during-iteration
Clone timeline to prevent modification during iteration
This commit is contained in:
commit
f3b9017a2c
|
@ -1,5 +1,9 @@
|
|||
# Version history
|
||||
|
||||
## Unreleased
|
||||
|
||||
* **Fixed** segmentation fault on OS X ([issue #65](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/65)).
|
||||
|
||||
## Version 1.9.0
|
||||
|
||||
* **Added** basic support for non-English recordings through phonetic recognition ([issue #45](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/45)).
|
||||
|
|
|
@ -77,7 +77,7 @@ JoiningBoundedTimeline<void> detectVoiceActivity(
|
|||
|
||||
// Discard very short segments of activity
|
||||
const centiseconds minSegmentLength(5);
|
||||
for (const auto& segment : activity) {
|
||||
for (const auto& segment : Timeline<void>(activity)) {
|
||||
if (segment.getDuration() < minSegmentLength) {
|
||||
activity.clear(segment.getTimeRange());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue