diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-02 19:08:30 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-02 19:08:30 +0000 |
commit | ceb1025c2c8ab1246a51c3967ee5a79773a4e008 (patch) | |
tree | 385091c0b89ef1b3ed54c7b8ccc13c83a59a7bec /libs/ardour | |
parent | 0cb4160ce771b87b2826452132bb1a6de447515f (diff) |
Small cleanup: add constructor to InterThreadInfo.
git-svn-id: svn://localhost/ardour2/branches/3.0@7044 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-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); |