diff options
author | Robin Gareus <robin@gareus.org> | 2015-01-14 19:29:55 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-01-14 19:29:55 +0100 |
commit | 37f351ccdd4dbc7d58ead99a3eb6725ee8c5c07c (patch) | |
tree | e0e5fb08a8edd0af923bfb3c1b40f239ce705dab /libs | |
parent | 18c502f646474b54f538fbc499a9c5d18f2a1b4e (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/backends/jack/jack_utils.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/backends/jack/jack_utils.cc b/libs/backends/jack/jack_utils.cc index 92e19985a0..cda7a6d8e7 100644 --- a/libs/backends/jack/jack_utils.cc +++ b/libs/backends/jack/jack_utils.cc @@ -892,7 +892,11 @@ ARDOUR::get_jack_command_line_string (JackCommandLineOptions& options, string& c ostringstream oss; 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 << ' '; } |