- boost::shared_ptr<GainControl> gcs = stripable->gain_control();
- boost::shared_ptr<GainControl> gcm = (*v)->gain_control();
-
- if (gcs == gcm) {
- /* asked to slave to self. not ok */
- continue;
- }
-
- if (gcm->slaved_to (gcs)) {
- /* master is already slaved to slave */
+ if (stripable->assigned_to (_session->vca_manager_ptr (), *v)) {
+ /* master(stripable) is directly or indirectly controlled by slave (v) */