Modify Strip Silence so that it can't create regions with -ve lengths
authorJohn Emmas <johne53@tiscali.co.uk>
Fri, 18 Sep 2015 09:44:07 +0000 (10:44 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Fri, 18 Sep 2015 09:44:07 +0000 (10:44 +0100)
commitc12e8cc47c8f3dcc6508a4e0734818c2a4fc38f1
tree250e399acde2785f703862c498d41896abc4af01
parentb548b6213d064b86f0748aa62595400d0e6fff91
Modify Strip Silence so that it can't create regions with -ve lengths

AFAICT this could happen if a region's end time (on the timeline) was earlier than the end time in the actual recording. This could cause a situation where the last block of detected silence would have an end time greater than the end tome for the region being processed. Strip Silence would create its new regions - but the last one it created would usually come out with a negative duration.
libs/ardour/strip_silence.cc