summaryrefslogtreecommitdiff
path: root/libs/ardour/st_stretch.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-26 03:07:49 +0100
committerRobin Gareus <robin@gareus.org>2019-02-26 03:07:49 +0100
commitb8a6f7b05213b3c5546b9930968783720bfe3b78 (patch)
tree766883184968924a86bf6bb8aebf6b061279eb80 /libs/ardour/st_stretch.cc
parentc36dfbedb7e6adb321c0c599b9d2def0bc32dde1 (diff)
TimeFx-Filter: do not create a region when operation is canceled
Diffstat (limited to 'libs/ardour/st_stretch.cc')
-rw-r--r--libs/ardour/st_stretch.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/st_stretch.cc b/libs/ardour/st_stretch.cc
index 70d7ca1fc7..7f48524cde 100644
--- a/libs/ardour/st_stretch.cc
+++ b/libs/ardour/st_stretch.cc
@@ -171,7 +171,9 @@ STStretch::run (boost::shared_ptr<Region> a_region, Progress* progress)
new_name += suffix;
- ret = finish (region, nsrcs, new_name);
+ if (!tsr.cancel) {
+ ret = finish (region, nsrcs, new_name);
+ }
/* now reset ancestral data for each new region */