From bced7c250ed94fa8600ecab38000f63ebdbbddd5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 12 Sep 2011 15:05:43 +0000 Subject: Use derived pan_outs() when panner setup is deferred, to make it the same as when it is done immediately. Fixes part of #4190. git-svn-id: svn://localhost/ardour2/branches/3.0@10069 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/delivery.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'libs/ardour/delivery.cc') diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index 75c32a03d1..1566f7877d 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -409,16 +409,8 @@ Delivery::reset_panner () int Delivery::panners_became_legal () { - uint32_t ntargets; - - if (_output) { - ntargets = _output->n_ports().n_audio(); - } else { - ntargets = _configured_output.n_audio(); - } - if (_panshell) { - _panshell->configure_io (ChanCount (DataType::AUDIO, pans_required()), ChanCount (DataType::AUDIO, ntargets)); + _panshell->configure_io (ChanCount (DataType::AUDIO, pans_required()), ChanCount (DataType::AUDIO, pan_outs())); if (_role == Main) { _panshell->pannable()->set_panner (_panshell->panner()); -- cgit v1.2.3