merge with master, with minor conflict fixes
[ardour.git] / libs / ardour / delivery.cc
index 045417b0ccc20b2716854ae38bff6d541048664c..8c12d44e5107518ec495ffe30d9b00b1ffdb4102 100644 (file)
@@ -397,8 +397,7 @@ Delivery::reset_panner ()
        if (panners_legal) {
                if (!_no_panner_reset) {
 
-                       if (_panshell) {
-                               assert (_role == Main || _role == Aux || _role == Send);
+                       if (_panshell && _role != Insert && _role != Listen) {
                                _panshell->configure_io (ChanCount (DataType::AUDIO, pans_required()), ChanCount (DataType::AUDIO, pan_outs()));
                        }
                }
@@ -412,8 +411,7 @@ Delivery::reset_panner ()
 void
 Delivery::panners_became_legal ()
 {
-       if (_panshell) {
-               assert (_role == Main || _role == Aux || _role == Send);
+       if (_panshell && _role != Insert) {
                _panshell->configure_io (ChanCount (DataType::AUDIO, pans_required()), ChanCount (DataType::AUDIO, pan_outs()));
        }