mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Fix crash on "Consolidate Range" on MIDI tracks (#4226).
git-svn-id: svn://localhost/ardour2/branches/3.0@10200 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8be2e11c65
commit
291bd32c9d
2 changed files with 7 additions and 6 deletions
|
|
@ -3368,6 +3368,10 @@ Editor::bounce_range_selection (bool replace, bool enable_processing)
|
||||||
|
|
||||||
boost::shared_ptr<Region> r = rtv->track()->bounce_range (start, start+cnt, itt, enable_processing);
|
boost::shared_ptr<Region> r = rtv->track()->bounce_range (start, start+cnt, itt, enable_processing);
|
||||||
|
|
||||||
|
if (!r) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (replace) {
|
if (replace) {
|
||||||
list<AudioRange> ranges;
|
list<AudioRange> ranges;
|
||||||
ranges.push_back (AudioRange (start, start+cnt, 0));
|
ranges.push_back (AudioRange (start, start+cnt, 0));
|
||||||
|
|
|
||||||
|
|
@ -508,9 +508,7 @@ MidiTrack::export_stuff (BufferSet& /*bufs*/, framecnt_t /*nframes*/, framepos_t
|
||||||
boost::shared_ptr<Region>
|
boost::shared_ptr<Region>
|
||||||
MidiTrack::bounce (InterThreadInfo& /*itt*/)
|
MidiTrack::bounce (InterThreadInfo& /*itt*/)
|
||||||
{
|
{
|
||||||
throw;
|
std::cerr << "MIDI bounce currently unsupported" << std::endl;
|
||||||
// vector<MidiSource*> srcs;
|
|
||||||
// return _session.write_one_track (*this, 0, _session.current_end_frame(), false, srcs, itt);
|
|
||||||
return boost::shared_ptr<Region> ();
|
return boost::shared_ptr<Region> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -518,15 +516,14 @@ MidiTrack::bounce (InterThreadInfo& /*itt*/)
|
||||||
boost::shared_ptr<Region>
|
boost::shared_ptr<Region>
|
||||||
MidiTrack::bounce_range (framepos_t /*start*/, framepos_t /*end*/, InterThreadInfo& /*itt*/, bool /*enable_processing*/)
|
MidiTrack::bounce_range (framepos_t /*start*/, framepos_t /*end*/, InterThreadInfo& /*itt*/, bool /*enable_processing*/)
|
||||||
{
|
{
|
||||||
throw;
|
std::cerr << "MIDI bounce range currently unsupported" << std::endl;
|
||||||
//vector<MidiSource*> srcs;
|
|
||||||
//return _session.write_one_track (*this, start, end, false, srcs, itt);
|
|
||||||
return boost::shared_ptr<Region> ();
|
return boost::shared_ptr<Region> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
MidiTrack::freeze_me (InterThreadInfo& /*itt*/)
|
MidiTrack::freeze_me (InterThreadInfo& /*itt*/)
|
||||||
{
|
{
|
||||||
|
std::cerr << "MIDI freeze currently unsupported" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue