13
0

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.
This commit is contained in:
Robin Gareus 2024-09-17 22:16:28 +02:00
parent 09e9d7781b
commit 8ab7c05382
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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<Route> 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> plugin = pi->plugin ();