diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-19 18:38:56 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-19 19:00:43 +0200 |
commit | c829c10a74475ef6157408aa0e234b2a0fd43917 (patch) | |
tree | 6a1d4d87eead2e11fc97654d540611b18fed6ce4 /gtk2_ardour/mixer_strip.cc | |
parent | bd5b97e964d23bc51ef737ae239ab9822b254cbb (diff) |
band-aid for Glib::operator<<
it seems that g_locale_from_utf8() (called by <<) is not thread safe,
at least not on OSX.
glib error-code 1, Invalid byte sequence in conversion input
-> throws Glib::Error.
possible fix for #6435, route-creation is interrupted via catch(...)
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index bda775ed56..7e374f1c5a 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1207,10 +1207,10 @@ MixerStrip::update_io_button (boost::shared_ptr<ARDOUR::Route> route, Width widt if (for_input) { io_count = route->n_inputs().n_total(); - tooltip << string_compose (_("<b>INPUT</b> to %1"), Glib::Markup::escape_text(route->name())); + tooltip << string_compose (_("<b>INPUT</b> to %1"), Glib::Markup::escape_text(route->name()).c_str()); } else { io_count = route->n_outputs().n_total(); - tooltip << string_compose (_("<b>OUTPUT</b> from %1"), Glib::Markup::escape_text(route->name())); + tooltip << string_compose (_("<b>OUTPUT</b> from %1"), Glib::Markup::escape_text(route->name()).c_str()); } @@ -1244,12 +1244,12 @@ MixerStrip::update_io_button (boost::shared_ptr<ARDOUR::Route> route, Width widt } if (io_connection_count == 0) { - tooltip << endl << Glib::Markup::escape_text(port->name().substr(port->name().find("/") + 1)) + tooltip << endl << Glib::Markup::escape_text(port->name().substr(port->name().find("/") + 1)).c_str() << " -> " - << Glib::Markup::escape_text( pn.empty() ? connection_name : pn ); + << Glib::Markup::escape_text( pn.empty() ? connection_name : pn ).c_str(); } else { tooltip << ", " - << Glib::Markup::escape_text( pn.empty() ? connection_name : pn ); + << Glib::Markup::escape_text( pn.empty() ? connection_name : pn ).c_str(); } if (connection_name.find("ardour:") == 0) { |