diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-11 00:23:39 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-11 00:23:39 +0000 |
commit | cd175818edfd56d3db7d3cdae29124386e790221 (patch) | |
tree | 8d8d5b649711767347309726ac17eb2329c5e384 /libs/ardour/panner.cc | |
parent | 1f0ac78bc4552834b2659cd3ff16b8643a1a9531 (diff) |
Fix crash.
git-svn-id: svn://localhost/ardour2/branches/3.0@8241 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r-- | libs/ardour/panner.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc index 0d86bb8db1..0727f5454a 100644 --- a/libs/ardour/panner.cc +++ b/libs/ardour/panner.cc @@ -1502,15 +1502,15 @@ Panner::setup_meta_controls () Evoral::Parameter lr_param (PanAutomation, 0, 100); Evoral::Parameter width_param (PanAutomation, 0, 200); - boost::shared_ptr<AutomationControl> wc; - boost::shared_ptr<AutomationControl> dc; + boost::shared_ptr<AutomationControl> dc = automation_control (lr_param); + boost::shared_ptr<AutomationControl> wc = automation_control (width_param); - if (!automation_control (lr_param)) { + if (!dc) { dc.reset (new StreamPanner::PanControllable (_session, _("lr"), *_streampanners.front(), lr_param)); add_control (dc); } - if (!automation_control (width_param)) { + if (!wc) { wc.reset (new StreamPanner::PanControllable (_session, _("width"), *_streampanners.front(), width_param)); add_control (wc); } |