X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsend.cc;h=614195ac2d890659b1b8da6155910f7880f218c2;hb=123399c2a8141458b21b0079ac17aa9ede16e763;hp=faafa3295ecfbc11d58c4de689b8b5c320e8e21e;hpb=c268314b64c2235b0d69c3854e303accd2cad4d9;p=ardour.git diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index faafa3295e..614195ac2d 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -44,6 +44,8 @@ Send::Send (Session& s, const XMLNode& node) _metering = false; expected_inputs = 0; + bitslot = 0xffffffff; + if (set_state (node)) { throw failed_constructor(); } @@ -92,8 +94,12 @@ Send::set_state(const XMLNode& node) if ((prop = node.property ("bitslot")) == 0) { bitslot = _session.next_send_id(); } else { + uint32_t old_bitslot = bitslot; sscanf (prop->value().c_str(), "%" PRIu32, &bitslot); - _session.mark_send_id (bitslot); + + if (bitslot != old_bitslot) { + _session.mark_send_id (bitslot); + } } /* Send has regular IO automation (gain, pan) */