Always set the natural position timestamp when importing audio files.
If the file has a timestamp, it should be set in the region during import. This keeps the BWF timestamp from being lost and allows the region context menu item "Move to original Position" to work. It does not affect where the region will be positioned during import. That still follows the import dialog menu selection (playhead, session start, etc). It just maintains data that the user can decided to use if needed. This change also allows files to be imported to the source list and then later placed on the timeline in the correct timestamped position.
This commit is contained in:
parent
06d4dc0ede
commit
22e5374389
@ -795,7 +795,7 @@ Editor::add_sources (vector<string> paths,
|
||||
|
||||
boost::shared_ptr<Region> r = RegionFactory::create (sources, plist);
|
||||
|
||||
if (use_timestamp && boost::dynamic_pointer_cast<AudioRegion>(r)) {
|
||||
if (boost::dynamic_pointer_cast<AudioRegion>(r)) {
|
||||
boost::dynamic_pointer_cast<AudioRegion>(r)->special_set_position(sources[0]->natural_position());
|
||||
}
|
||||
|
||||
@ -884,7 +884,7 @@ Editor::add_sources (vector<string> paths,
|
||||
|
||||
boost::shared_ptr<Region> r = RegionFactory::create (just_one, plist);
|
||||
|
||||
if (use_timestamp && boost::dynamic_pointer_cast<AudioRegion>(r)) {
|
||||
if (boost::dynamic_pointer_cast<AudioRegion>(r)) {
|
||||
boost::dynamic_pointer_cast<AudioRegion>(r)->special_set_position((*x)->natural_position());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user