#1070: a fresh import or opened project reads footage files again

The media layer keys decoded frames by path, and nothing dropped them when a
new project (or a new import) named a file that another app had overwritten
since, so a same-size overwrite showed the old pixels. Importing footage and
replacing the project now make the media layer and the layer cache let go of
the files involved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76
2026-10-12 20:22:48 +02:00
co-authored by Claude Sonnet 5.5
parent 470ea7a3af
commit 8e5605d0e6
3 changed files with 41 additions and 0 deletions
+5
View File
@@ -445,6 +445,11 @@ fn add_footage(s: &mut Session, pending: PendingImport, probed: Vec<std::result:
let mut asked: Vec<u64> = vec![];
let made: Vec<ItemId> = comps.iter().map(|c| ItemId(*c)).collect();
if !found.is_empty() {
// The file may have been overwritten since an earlier import or project decoded it (the
// media layer keys frames by path): a fresh import reads it again (#1070).
for f in &found {
s.forget_decoded(&f.footage);
}
s.edit("Import", None, |proj, st| {
let mut selection = made;
for f in found {