diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-29 16:22:22 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-29 16:22:22 +0000 |
commit | c42c57e5fd0b6512a35463b6bb11c13b6307e8dc (patch) | |
tree | d2153d54ce9de35e374ffc67b0f49bd6c51871b6 | |
parent | 44c2da31979dd3cd719b6d33e76306341eb03345 (diff) |
fix faulty logic when deciding whether to run a redirect's ::silence() method; initialize propertyList to 0 in audio_unit.cc, taken from mixbus branch
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7019 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/audio_unit.cc | 3 | ||||
-rw-r--r-- | libs/ardour/route.cc | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index fd975ba409..4a0b7dfa4b 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -189,7 +189,7 @@ static CFPropertyListRef load_property_list (Glib::ustring path) { int fd; - CFPropertyListRef propertyList; + CFPropertyListRef propertyList = 0; CFDataRef xmlData; CFStringRef errorString; @@ -1267,7 +1267,6 @@ AUPlugin::connect_and_run (vector<Sample*>& bufs, uint32_t maxbuf, int32_t& in, } // cerr << name() << " render error " << err << endl; - return -1; } diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 3ae80ede9c..454d29ab4d 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2020,8 +2020,9 @@ Route::silence (nframes_t nframes) if (lm.locked()) { for (RedirectList::iterator i = _redirects.begin(); i != _redirects.end(); ++i) { - boost::shared_ptr<PluginInsert> pi; - if (!_active && (pi = boost::dynamic_pointer_cast<PluginInsert> (*i)) != 0) { + boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (*i); + + if (!_active && pi) { // skip plugins, they don't need anything when we're not active continue; } |