mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
JACK: add support for device names with whitespace
This is backwards compatible, quotes are only added if needed. JACK1 < 0.123.1-30 and JACK2 < 1.9.10-25 fail with either whitespace or quotes, so nothing is lost.
This commit is contained in:
parent
18c502f646
commit
37f351ccdd
1 changed files with 5 additions and 1 deletions
|
|
@ -892,7 +892,11 @@ ARDOUR::get_jack_command_line_string (JackCommandLineOptions& options, string& c
|
||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
|
|
||||||
for (vector<string>::const_iterator i = args.begin(); i != args.end();) {
|
for (vector<string>::const_iterator i = args.begin(); i != args.end();) {
|
||||||
oss << *i;
|
if (i->find_first_of(' ') != string::npos) {
|
||||||
|
oss << "\"" << *i << "\"";
|
||||||
|
} else {
|
||||||
|
oss << *i;
|
||||||
|
}
|
||||||
if (++i != args.end()) oss << ' ';
|
if (++i != args.end()) oss << ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue