13
0

Fix stretch for MIDI regions (#6164).

This commit is contained in:
David Robillard 2015-03-14 00:39:52 -04:00
parent 86c6541323
commit 0028630ece

View File

@ -59,7 +59,9 @@ Filter::make_new_sources (boost::shared_ptr<Region> region, SourceList& nsrcs, s
}
}
string path = session.new_audio_source_path (name, region->n_channels(), i, false, false);
const string path = (region->data_type() == DataType::MIDI)
? session.new_midi_source_path (name)
: session.new_audio_source_path (name, region->n_channels(), i, false, false);
if (path.empty()) {
error << string_compose (_("filter: error creating name for new file based on %1"), region->name())