From 8ab7c05382bdb39e40a5179c989b9663e93fa302 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 17 Sep 2024 22:16:28 +0200 Subject: [PATCH] Fix fan-out of instruments with illegal path-chars in their port-name e.g. EZDrummer "1/2" (or generic "L/R"). While those names are perfectly fine for Ports, tracks (file) names cannot include those chars. Since fan-out looks up routes by name this failed to properly connect stereo pinouts since 4a14f2fed5, 5b746b186. --- gtk2_ardour/mixer_ui.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 94cc13b305..91c37f88c2 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -59,6 +59,7 @@ #include "ardour/route_group.h" #include "ardour/selection.h" #include "ardour/session.h" +#include "ardour/utils.h" #include "ardour/vca.h" #include "ardour/vca_manager.h" @@ -1026,7 +1027,7 @@ Mixer_UI::fan_out (std::weak_ptr wr, bool to_busses, bool group) return; } -#define BUSNAME pd.group_name + "(" + route->name () + ")" +#define BUSNAME legalize_for_universal_path (pd.group_name + " (" + route->name () + ")") /* count busses and channels/bus */ std::shared_ptr plugin = pi->plugin ();