use strict i/o preference during import
This commit is contained in:
parent
a16c7a8a90
commit
89ae64c39f
@ -939,6 +939,11 @@ Editor::finish_bringing_in_material (boost::shared_ptr<Region> region,
|
|||||||
if (at.empty()) {
|
if (at.empty()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (Config->get_strict_io ()) {
|
||||||
|
for (list<boost::shared_ptr<AudioTrack> >::iterator i = at.begin(); i != at.end(); ++i) {
|
||||||
|
(*i)->set_strict_io (true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
existing_track = at.front();
|
existing_track = at.front();
|
||||||
} else if (mr) {
|
} else if (mr) {
|
||||||
@ -951,7 +956,13 @@ Editor::finish_bringing_in_material (boost::shared_ptr<Region> region,
|
|||||||
if (mt.empty()) {
|
if (mt.empty()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (Config->get_strict_io ()) {
|
||||||
|
for (list<boost::shared_ptr<MidiTrack> >::iterator i = mt.begin(); i != mt.end(); ++i) {
|
||||||
|
(*i)->set_strict_io (true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO set strict_io from preferences
|
||||||
existing_track = mt.front();
|
existing_track = mt.front();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -984,6 +995,11 @@ Editor::finish_bringing_in_material (boost::shared_ptr<Region> region,
|
|||||||
playlist->add_region (copy, pos);
|
playlist->add_region (copy, pos);
|
||||||
_session->add_command (new StatefulDiffCommand (playlist));
|
_session->add_command (new StatefulDiffCommand (playlist));
|
||||||
}
|
}
|
||||||
|
if (Config->get_strict_io ()) {
|
||||||
|
for (list<boost::shared_ptr<AudioTrack> >::iterator i = at.begin(); i != at.end(); ++i) {
|
||||||
|
(*i)->set_strict_io (true);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user