diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/types.h | 2 | ||||
-rw-r--r-- | libs/ardour/strip_silence.cc | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h index 2bd08cbcdf..39b763a41d 100644 --- a/libs/ardour/ardour/types.h +++ b/libs/ardour/ardour/types.h @@ -320,6 +320,8 @@ namespace ARDOUR { }; struct InterThreadInfo { + InterThreadInfo () : done (false), cancel (false), progress (0), thread (0) {} + volatile bool done; volatile bool cancel; volatile float progress; diff --git a/libs/ardour/strip_silence.cc b/libs/ardour/strip_silence.cc index 3952311aa2..21faeded68 100644 --- a/libs/ardour/strip_silence.cc +++ b/libs/ardour/strip_silence.cc @@ -56,15 +56,6 @@ StripSilence::run (boost::shared_ptr<Region> r) return -1; } - /* we don't care about this but we need to fill out the fields - anyway. XXX should really be a default constructor for ITT - */ - - itt.done = false; - itt.cancel = false; - itt.progress = 0.0; - itt.thread = 0; - /* find periods of silence in the region */ std::list<std::pair<frameoffset_t, framecnt_t> > const silence = region->find_silence (dB_to_coefficient (_threshold), _minimum_length, itt); |