diff options
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r-- | libs/ardour/smf_source.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index caaa71d39d..e32c14acb3 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -153,7 +153,12 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist) path for MIDI files, which is assumed to be the correct "main" location. */ - std::vector<string> sdirs = s.source_search_path (DataType::MIDI); + std::vector<Glib::ustring> sdirs; + split (s.source_search_path (DataType::MIDI), sdirs, ':'); + if (sdirs.empty()) { + fatal << _("Empty MIDI source search path!") << endmsg; + /*NOTREACHED*/ + } _path = Glib::build_filename (sdirs.front(), _path); /* This might be important, too */ _file_is_new = true; |