diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-14 22:39:46 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-14 22:46:15 +0200 |
commit | 8b80fe04ad0cc4dc5429f65e21ed636ed87dc634 (patch) | |
tree | edbc7965b8701f82852e1fff96f84a6d24f158cc /gtk2_ardour/sfdb_ui.cc | |
parent | 5eefdf7536e2b5fc10b98669c52cdbee13e6215c (diff) |
Avoid calls to Glib::ustring << operator at all cost.
Glib::operator<<(std::ostream&, Glib::ustring const&) involves
loadlocale which is not thread-safe on OSX.
This fixes various seemingly random crashes on OSX.
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index c2bd388d6c..231498cda2 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -336,7 +336,7 @@ SoundFileBox::setup_labels (const string& filename) return false; } - preview_label.set_markup (string_compose ("<b>%1</b>", Glib::Markup::escape_text (Glib::path_get_basename (filename)))); + preview_label.set_markup (string_compose ("<b>%1</b>", Glib::Markup::escape_text (Glib::path_get_basename (filename)).c_str())); std::string n = sf_info.format_name; if (n.substr (0, 8) == X_("Format: ")) { n = n.substr (8); |