13
0

Fix duplicate whole-file regions when embedding sources

playlist->add_region() derives a region in case a whole-file
region is added to the playlist.
This commit is contained in:
Robin Gareus 2023-05-28 04:39:06 +02:00
parent 39ac0c5e19
commit 5dd35ff86a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1058,7 +1058,7 @@ Editor::finish_bringing_in_material (std::shared_ptr<Region> region,
}
std::shared_ptr<Playlist> playlist = existing_track->playlist();
std::shared_ptr<Region> copy (RegionFactory::create (region, region->properties()));
std::shared_ptr<Region> copy (RegionFactory::create (region, region->derive_properties ()));
playlist->clear_changes ();
playlist->clear_owned_changes ();
playlist->add_region (copy, pos);