diff options
author | David Robillard <d@drobilla.net> | 2015-03-14 00:39:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-14 00:39:52 -0400 |
commit | 0028630eceec67c22561c7c72ad758491257ddc4 (patch) | |
tree | f801f477dbc9af30fa48a7cf5b775f9f787c1106 /libs | |
parent | 86c654132358b22f62a0672b11f436eb9123367e (diff) |
Fix stretch for MIDI regions (#6164).
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/filter.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/filter.cc b/libs/ardour/filter.cc index b723de1e56..d782db96f2 100644 --- a/libs/ardour/filter.cc +++ b/libs/ardour/filter.cc @@ -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()) |