forge
Explore
Log in

Don't you dare go Hollow

🚚 rename: project is edith — .edith extension, edith binary

Browse files at this commit

7f4c9210e7414ba038d7e56327d217894a00a4deAhmet Kaan GümüşParent: 85ac45b
Cargo.lockmodified+9 -9
@@ -82,15 +82,6 @@ version = "1.0.104"
82 source = "registry+https://github.com/rust-lang/crates.io-index"82 source = "registry+https://github.com/rust-lang/crates.io-index"
83 checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"83 checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
84 84
85-[[package]]
86-name = "app"
87-version = "0.1.0"
88-dependencies = [
89- "engine",
90- "gpui",
91- "image",
92-]
93-
94 [[package]]85 [[package]]
95 name = "ar_archive_writer"86 name = "ar_archive_writer"
96 version = "0.5.3"87 version = "0.5.3"
@@ -1570,6 +1561,15 @@ version = "1.0.20"
1570 source = "registry+https://github.com/rust-lang/crates.io-index"1561 source = "registry+https://github.com/rust-lang/crates.io-index"
1571 checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"1562 checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
1572 1563
1564+[[package]]
1565+name = "edith"
1566+version = "0.1.0"
1567+dependencies = [
1568+ "engine",
1569+ "gpui",
1570+ "image",
1571+]
1572+
1573 [[package]]1573 [[package]]
1574 name = "either"1574 name = "either"
1575 version = "1.17.0"1575 version = "1.17.0"
crates/app/Cargo.tomlmodified+2 -2
@@ -1,10 +1,10 @@
1 [package]1 [package]
2-name = "app"2+name = "edith"
3 version.workspace = true3 version.workspace = true
4 edition.workspace = true4 edition.workspace = true
5 5
6 [[bin]]6 [[bin]]
7-name = "app"7+name = "edith"
8 path = "src/main.rs"8 path = "src/main.rs"
9 9
10 [dependencies]10 [dependencies]
crates/engine/src/veproj.rs → crates/engine/src/edith.rsrenamed+20 -20
@@ -1,7 +1,7 @@
1 //! The project file: a line of text per thing, and nothing else.1 //! The project file: a line of text per thing, and nothing else.
2 //!2 //!
3 //! ```text3 //! ```text
4-//! veproj 14+//! edith 1
5 //! playhead 905 //! playhead 90
6 //! source test_av.mp46 //! source test_av.mp4
7 //! source /elsewhere/test_av2.mp47 //! source /elsewhere/test_av2.mp4
@@ -14,7 +14,7 @@
14 //! So the path field is byte-escaped (`%` -> `%25`, newline -> `%0A`, which is14 //! So the path field is byte-escaped (`%` -> `%25`, newline -> `%0A`, which is
15 //! everything a line-based format cannot carry) and survives round-trip15 //! everything a line-based format cannot carry) and survives round-trip
16 //! exactly. Paths under the project file's own directory are written relative16 //! exactly. Paths under the project file's own directory are written relative
17-//! to it, so a folder holding the media and the `.veproj` can be moved or17+//! to it, so a folder holding the media and the `.edith` can be moved or
18 //! copied anywhere and still open; anything else is absolute.18 //! copied anywhere and still open; anything else is absolute.
19 //!19 //!
20 //! The parser is strict and every refusal names its 1-based line: a project20 //! The parser is strict and every refusal names its 1-based line: a project
@@ -33,8 +33,8 @@ use std::path::{Path, PathBuf};
33 use crate::project::Clip;33 use crate::project::Clip;
34 34
35 /// First line, exactly. The version is part of it: a v2 reader will accept a35 /// First line, exactly. The version is part of it: a v2 reader will accept a
36-/// `veproj 1` file, and a v1 reader refuses a `veproj 2` one by name.36+/// `edith 1` file, and a v1 reader refuses a `edith 2` one by name.
37-const MAGIC: &[u8] = b"veproj 1";37+const MAGIC: &[u8] = b"edith 1";
38 38
39 /// What a project file says: an edit list plus where the playhead stood.39 /// What a project file says: an edit list plus where the playhead stood.
40 /// Structurally valid by construction -- see [`parse`].40 /// Structurally valid by construction -- see [`parse`].
@@ -94,9 +94,9 @@ fn parse(data: &[u8], dir: &Path) -> crate::Result<Document> {
94 let mut lines = body.split(|&b| b == b'\n').enumerate();94 let mut lines = body.split(|&b| b == b'\n').enumerate();
95 let (_, first) = lines.next().unwrap_or((0, &[]));95 let (_, first) = lines.next().unwrap_or((0, &[]));
96 if first != MAGIC {96 if first != MAGIC {
97- return Err(match first.strip_prefix(b"veproj ") {97+ return Err(match first.strip_prefix(b"edith ") {
98 Some(v) => format!("line 1: unsupported version {}", String::from_utf8_lossy(v)),98 Some(v) => format!("line 1: unsupported version {}", String::from_utf8_lossy(v)),
99- None => "line 1: not a veproj file".to_string(),99+ None => "line 1: not a edith file".to_string(),
100 }100 }
101 .into());101 .into());
102 }102 }
@@ -262,7 +262,7 @@ mod tests {
262 let bytes = emit(&dir, &sources, &clips, 12);262 let bytes = emit(&dir, &sources, &clips, 12);
263 assert_eq!(263 assert_eq!(
264 String::from_utf8_lossy(&bytes),264 String::from_utf8_lossy(&bytes),
265- "veproj 1\nplayhead 12\nsource a.mp4\nsource /elsewhere/b.mp4\nclip 0 30 0\nclip 10 20 1\n",265+ "edith 1\nplayhead 12\nsource a.mp4\nsource /elsewhere/b.mp4\nclip 0 30 0\nclip 10 20 1\n",
266 "the file under the project directory is written relative to it"266 "the file under the project directory is written relative to it"
267 );267 );
268 let back = parse(&bytes, &dir).expect("parse");268 let back = parse(&bytes, &dir).expect("parse");
@@ -291,14 +291,14 @@ mod tests {
291 #[test]291 #[test]
292 fn a_wrong_first_line_is_refused_by_name() {292 fn a_wrong_first_line_is_refused_by_name() {
293 let dir = PathBuf::from("/proj");293 let dir = PathBuf::from("/proj");
294- let err = parse(b"veproj 2\nsource a.mp4\nclip 0 5 0\n", &dir)294+ let err = parse(b"edith 2\nsource a.mp4\nclip 0 5 0\n", &dir)
295 .unwrap_err()295 .unwrap_err()
296 .to_string();296 .to_string();
297 assert_eq!(err, "line 1: unsupported version 2");297 assert_eq!(err, "line 1: unsupported version 2");
298 for junk in [&b""[..], b"{}\n", b"source a.mp4\n"] {298 for junk in [&b""[..], b"{}\n", b"source a.mp4\n"] {
299 assert_eq!(299 assert_eq!(
300 parse(junk, &dir).unwrap_err().to_string(),300 parse(junk, &dir).unwrap_err().to_string(),
301- "line 1: not a veproj file"301+ "line 1: not a edith file"
302 );302 );
303 }303 }
304 }304 }
@@ -308,35 +308,35 @@ mod tests {
308 let dir = PathBuf::from("/proj");308 let dir = PathBuf::from("/proj");
309 let cases: [(&[u8], &str); 8] = [309 let cases: [(&[u8], &str); 8] = [
310 (310 (
311- b"veproj 1\nsource a.mp4\nclip 0 5\n",311+ b"edith 1\nsource a.mp4\nclip 0 5\n",
312 "line 3: clip wants 3 fields, found 2",312 "line 3: clip wants 3 fields, found 2",
313 ),313 ),
314 (314 (
315- b"veproj 1\nsource a.mp4\nclip 0 five 0\n",315+ b"edith 1\nsource a.mp4\nclip 0 five 0\n",
316 "line 3: \"five\" is not a number",316 "line 3: \"five\" is not a number",
317 ),317 ),
318 (318 (
319- b"veproj 1\nsource a.mp4\nclip 5 5 0\n",319+ b"edith 1\nsource a.mp4\nclip 5 5 0\n",
320 "line 3: clip [5, 5) is empty",320 "line 3: clip [5, 5) is empty",
321 ),321 ),
322 (322 (
323- b"veproj 1\nsource a.mp4\nclip 7 5 0\n",323+ b"edith 1\nsource a.mp4\nclip 7 5 0\n",
324 "line 3: clip [7, 5) is empty",324 "line 3: clip [7, 5) is empty",
325 ),325 ),
326 (326 (
327- b"veproj 1\nsource a.mp4\nclip 0 5 1\n",327+ b"edith 1\nsource a.mp4\nclip 0 5 1\n",
328 "line 3: clip names source 1 of 1",328 "line 3: clip names source 1 of 1",
329 ),329 ),
330 (330 (
331- b"veproj 1\nsource a.mp4\nclip 0 5 0\nsource b.mp4\n",331+ b"edith 1\nsource a.mp4\nclip 0 5 0\nsource b.mp4\n",
332 "line 4: source after a clip",332 "line 4: source after a clip",
333 ),333 ),
334 (334 (
335- b"veproj 1\nsource a.mp4\n\nclip 0 5 0\n",335+ b"edith 1\nsource a.mp4\n\nclip 0 5 0\n",
336 "line 3: unknown keyword \"\"",336 "line 3: unknown keyword \"\"",
337 ),337 ),
338 (338 (
339- b"veproj 1\nsource a.mp4\nplayhead 3\nclip 0 5 0\n",339+ b"edith 1\nsource a.mp4\nplayhead 3\nclip 0 5 0\n",
340 "line 3: playhead belongs once, before the sources",340 "line 3: playhead belongs once, before the sources",
341 ),341 ),
342 ];342 ];
@@ -349,13 +349,13 @@ mod tests {
349 fn a_project_without_clips_is_not_a_project() {349 fn a_project_without_clips_is_not_a_project() {
350 let dir = PathBuf::from("/proj");350 let dir = PathBuf::from("/proj");
351 assert_eq!(351 assert_eq!(
352- parse(b"veproj 1\nsource a.mp4\n", &dir)352+ parse(b"edith 1\nsource a.mp4\n", &dir)
353 .unwrap_err()353 .unwrap_err()
354 .to_string(),354 .to_string(),
355 "no clips: an empty timeline is not a project"355 "no clips: an empty timeline is not a project"
356 );356 );
357 assert_eq!(357 assert_eq!(
358- parse(b"veproj 1\n", &dir).unwrap_err().to_string(),358+ parse(b"edith 1\n", &dir).unwrap_err().to_string(),
359 "no clips: an empty timeline is not a project"359 "no clips: an empty timeline is not a project"
360 );360 );
361 }361 }
@@ -373,7 +373,7 @@ mod tests {
373 }373 }
374 // A % escape at the very end of a line has nothing to consume.374 // A % escape at the very end of a line has nothing to consume.
375 assert_eq!(375 assert_eq!(
376- parse(b"veproj 1\nsource a%\nclip 0 5 0\n", &dir)376+ parse(b"edith 1\nsource a%\nclip 0 5 0\n", &dir)
377 .unwrap_err()377 .unwrap_err()
378 .to_string(),378 .to_string(),
379 "line 2: truncated % escape in the path"379 "line 2: truncated % escape in the path"
crates/engine/src/lib.rsmodified+1 -1
@@ -6,12 +6,12 @@ pub mod clock;
6 pub mod convert;6 pub mod convert;
7 pub mod decode;7 pub mod decode;
8 pub mod demux;8 pub mod demux;
9+pub mod edith;
9 pub mod export;10 pub mod export;
10 pub mod hw;11 pub mod hw;
11 pub mod mux;12 pub mod mux;
12 pub mod playback;13 pub mod playback;
13 pub mod project;14 pub mod project;
14-pub mod veproj;
15 15
16 pub use audio::{AacPacket, AacTrackParams, AudioChunk, AudioMeta, AudioProbe, AudioSession};16 pub use audio::{AacPacket, AacTrackParams, AudioChunk, AudioMeta, AudioProbe, AudioSession};
17 pub use clock::PlaybackClock;17 pub use clock::PlaybackClock;
crates/engine/src/playback.rsmodified+4 -4
@@ -148,7 +148,7 @@ impl PlaybackSession {
148 ///148 ///
149 /// The undo history is not saved: `undo` is `false` on a fresh load.149 /// The undo history is not saved: `undo` is `false` on a fresh load.
150 pub fn open_project(path: &Path) -> crate::Result<Self> {150 pub fn open_project(path: &Path) -> crate::Result<Self> {
151- let doc = crate::veproj::load(path)?;151+ let doc = crate::edith::load(path)?;
152 let first = doc.sources.first().ok_or("the project names no sources")?;152 let first = doc.sources.first().ok_or("the project names no sources")?;
153 // Source 0 both scaffolds the session and defines the timeline, so it153 // Source 0 both scaffolds the session and defines the timeline, so it
154 // is opened for playback rather than merely probed.154 // is opened for playback rather than merely probed.
@@ -214,14 +214,14 @@ impl PlaybackSession {
214 self.project.sources()214 self.project.sources()
215 }215 }
216 216
217- /// Writes the timeline to `path` as a `.veproj`, atomically (see217+ /// Writes the timeline to `path` as a `.edith`, atomically (see
218- /// [`crate::veproj`]). Sources no clip plays from are left out, and the218+ /// [`crate::edith`]). Sources no clip plays from are left out, and the
219 /// playhead is saved with it so a reopened project resumes where it stood.219 /// playhead is saved with it so a reopened project resumes where it stood.
220 pub fn save_project(&self, path: &Path) -> crate::Result<()> {220 pub fn save_project(&self, path: &Path) -> crate::Result<()> {
221 let (sources, clips) = self.project.without_orphan_sources();221 let (sources, clips) = self.project.without_orphan_sources();
222 let playhead = secs_to_frame(self.now(), self.meta.frame_rate)222 let playhead = secs_to_frame(self.now(), self.meta.frame_rate)
223 .min(self.project.timeline_frames().saturating_sub(1));223 .min(self.project.timeline_frames().saturating_sub(1));
224- crate::veproj::save(path, &sources, &clips, playhead)224+ crate::edith::save(path, &sources, &clips, playhead)
225 }225 }
226 226
227 /// The next decoded frame, its `index` rewritten from a source frame to a227 /// The next decoded frame, its `index` rewritten from a source frame to a
crates/engine/src/project.rsmodified+1 -1
@@ -68,7 +68,7 @@ impl Project {
68 }68 }
69 69
70 /// A project rebuilt from a saved edit list -- the load half of70 /// A project rebuilt from a saved edit list -- the load half of
71- /// [`crate::veproj`]. History is *not* saved, so [`Project::undo`] is71+ /// [`crate::edith`]. History is *not* saved, so [`Project::undo`] is
72 /// `false` until the first edit of the new session. `None` when the parts72 /// `false` until the first edit of the new session. `None` when the parts
73 /// would break an invariant every other constructor keeps: no clips, an73 /// would break an invariant every other constructor keeps: no clips, an
74 /// empty clip, or a clip naming a source that is not there.74 /// empty clip, or a clip naming a source that is not there.
crates/engine/tests/saveload.rsmodified+25 -25
@@ -1,5 +1,5 @@
1 //! Saving a project and opening it again: the timeline that comes back is the1 //! Saving a project and opening it again: the timeline that comes back is the
2-//! one that went in, a folder of media plus its `.veproj` can be moved2+//! one that went in, a folder of media plus its `.edith` can be moved
3 //! anywhere, and every way the files on disk can have changed underneath is a3 //! anywhere, and every way the files on disk can have changed underneath is a
4 //! refusal that says which file and why.4 //! refusal that says which file and why.
5 //!5 //!
@@ -60,7 +60,7 @@ fn shape(session: &PlaybackSession) -> (Vec<(f64, f64, usize)>, Vec<PathBuf>, f6
60 fn a_saved_project_reopens_as_the_same_timeline() {60 fn a_saved_project_reopens_as_the_same_timeline() {
61 let dir = scratch("round_trip");61 let dir = scratch("round_trip");
62 let saved = edited(&dir);62 let saved = edited(&dir);
63- let path = dir.join("edit.veproj");63+ let path = dir.join("edit.edith");
64 saved.save_project(&path).expect("save");64 saved.save_project(&path).expect("save");
65 65
66 let mut loaded = PlaybackSession::open_project(&path).expect("open the project");66 let mut loaded = PlaybackSession::open_project(&path).expect("open the project");
@@ -76,7 +76,7 @@ fn a_saved_project_reopens_as_the_same_timeline() {
76 76
77 // Saving what was loaded reproduces the file byte for byte -- the format77 // Saving what was loaded reproduces the file byte for byte -- the format
78 // has no state the round trip drops.78 // has no state the round trip drops.
79- let again = dir.join("again.veproj");79+ let again = dir.join("again.edith");
80 loaded80 loaded
81 .save_project(&again)81 .save_project(&again)
82 .expect("save the loaded project");82 .expect("save the loaded project");
@@ -85,24 +85,24 @@ fn a_saved_project_reopens_as_the_same_timeline() {
85 std::fs::read(&again).unwrap(),85 std::fs::read(&again).unwrap(),
86 "save -> load -> save is not a fixed point"86 "save -> load -> save is not a fixed point"
87 );87 );
88- assert!(!path.with_extension("veproj.part").exists(), "left a .part");88+ assert!(!path.with_extension("edith.part").exists(), "left a .part");
89 }89 }
90 90
91 #[test]91 #[test]
92 fn a_folder_of_media_and_its_project_can_be_moved() {92 fn a_folder_of_media_and_its_project_can_be_moved() {
93 let from = scratch("relocate_from");93 let from = scratch("relocate_from");
94 let saved = edited(&from);94 let saved = edited(&from);
95- saved.save_project(&from.join("edit.veproj")).expect("save");95+ saved.save_project(&from.join("edit.edith")).expect("save");
96 drop(saved);96 drop(saved);
97 97
98 let to = scratch("relocate_to");98 let to = scratch("relocate_to");
99- for name in ["test_av.mp4", "test_av2.mp4", "edit.veproj"] {99+ for name in ["test_av.mp4", "test_av2.mp4", "edit.edith"] {
100 std::fs::copy(from.join(name), to.join(name)).expect("copy");100 std::fs::copy(from.join(name), to.join(name)).expect("copy");
101 }101 }
102 // The originals go away entirely: nothing absolute can be resolving here.102 // The originals go away entirely: nothing absolute can be resolving here.
103 std::fs::remove_dir_all(&from).expect("remove the original folder");103 std::fs::remove_dir_all(&from).expect("remove the original folder");
104 104
105- let moved = PlaybackSession::open_project(&to.join("edit.veproj")).expect("open the copy");105+ let moved = PlaybackSession::open_project(&to.join("edit.edith")).expect("open the copy");
106 assert_eq!(moved.timeline_duration(), 6.0);106 assert_eq!(moved.timeline_duration(), 6.0);
107 assert!(107 assert!(
108 moved.sources().iter().all(|s| s.starts_with(&to)),108 moved.sources().iter().all(|s| s.starts_with(&to)),
@@ -125,7 +125,7 @@ fn orphan_sources_are_not_written() {
125 "the orphan entry stays in-session"125 "the orphan entry stays in-session"
126 );126 );
127 127
128- let path = dir.join("orphan.veproj");128+ let path = dir.join("orphan.edith");
129 session.save_project(&path).expect("save");129 session.save_project(&path).expect("save");
130 let text = std::fs::read_to_string(&path).expect("read back");130 let text = std::fs::read_to_string(&path).expect("read back");
131 assert_eq!(131 assert_eq!(
@@ -146,7 +146,7 @@ fn orphan_sources_are_not_written() {
146 fn a_source_that_vanished_is_refused_by_name() {146 fn a_source_that_vanished_is_refused_by_name() {
147 let dir = scratch("missing");147 let dir = scratch("missing");
148 let session = edited(&dir);148 let session = edited(&dir);
149- let path = dir.join("edit.veproj");149+ let path = dir.join("edit.edith");
150 session.save_project(&path).expect("save");150 session.save_project(&path).expect("save");
151 drop(session);151 drop(session);
152 152
@@ -174,12 +174,12 @@ fn a_source_that_vanished_is_refused_by_name() {
174 fn a_source_that_shrank_is_refused_by_clip() {174 fn a_source_that_shrank_is_refused_by_clip() {
175 let dir = scratch("shrunk");175 let dir = scratch("shrunk");
176 copy_in(&dir, "test_av.mp4");176 copy_in(&dir, "test_av.mp4");
177- let path = dir.join("shrunk.veproj");177+ let path = dir.join("shrunk.edith");
178 // Hand-written: a clip that ran to frame 10000 of a 150-frame file, which178 // Hand-written: a clip that ran to frame 10000 of a 150-frame file, which
179 // is what re-encoding a source shorter leaves behind.179 // is what re-encoding a source shorter leaves behind.
180 std::fs::write(180 std::fs::write(
181 &path,181 &path,
182- "veproj 1\nplayhead 0\nsource test_av.mp4\nclip 0 30 0\nclip 30 10000 0\n",182+ "edith 1\nplayhead 0\nsource test_av.mp4\nclip 0 30 0\nclip 30 10000 0\n",
183 )183 )
184 .expect("write");184 .expect("write");
185 let err = PlaybackSession::open_project(&path)185 let err = PlaybackSession::open_project(&path)
@@ -194,7 +194,7 @@ fn a_source_that_shrank_is_refused_by_clip() {
194 // One frame short of the end is still inside the file.194 // One frame short of the end is still inside the file.
195 std::fs::write(195 std::fs::write(
196 &path,196 &path,
197- "veproj 1\nplayhead 0\nsource test_av.mp4\nclip 0 150 0\n",197+ "edith 1\nplayhead 0\nsource test_av.mp4\nclip 0 150 0\n",
198 )198 )
199 .expect("write");199 .expect("write");
200 let whole = PlaybackSession::open_project(&path).expect("the exact length is legal");200 let whole = PlaybackSession::open_project(&path).expect("the exact length is legal");
@@ -204,34 +204,34 @@ fn a_source_that_shrank_is_refused_by_clip() {
204 #[test]204 #[test]
205 fn a_project_that_names_itself_is_refused() {205 fn a_project_that_names_itself_is_refused() {
206 let dir = scratch("self_reference");206 let dir = scratch("self_reference");
207- let path = dir.join("ouroboros.veproj");207+ let path = dir.join("ouroboros.edith");
208 std::fs::write(208 std::fs::write(
209 &path,209 &path,
210- "veproj 1\nplayhead 0\nsource ouroboros.veproj\nclip 0 30 0\n",210+ "edith 1\nplayhead 0\nsource ouroboros.edith\nclip 0 30 0\n",
211 )211 )
212 .expect("write");212 .expect("write");
213 let err = PlaybackSession::open_project(&path)213 let err = PlaybackSession::open_project(&path)
214 .err()214 .err()
215 .expect("a project is not a video")215 .expect("a project is not a video")
216 .to_string();216 .to_string();
217- assert!(err.contains("ouroboros.veproj"), "{err}");217+ assert!(err.contains("ouroboros.edith"), "{err}");
218 }218 }
219 219
220 #[test]220 #[test]
221 fn malformed_files_are_numbered_errors_and_never_panics() {221 fn malformed_files_are_numbered_errors_and_never_panics() {
222 let dir = scratch("malformed");222 let dir = scratch("malformed");
223 copy_in(&dir, "test_av.mp4");223 copy_in(&dir, "test_av.mp4");
224- let path = dir.join("bad.veproj");224+ let path = dir.join("bad.edith");
225- let good = "veproj 1\nplayhead 0\nsource test_av.mp4\nclip 0 30 0\n";225+ let good = "edith 1\nplayhead 0\nsource test_av.mp4\nclip 0 30 0\n";
226 226
227 for (text, want) in [227 for (text, want) in [
228- ("veproj 2\nsource test_av.mp4\nclip 0 30 0\n", "line 1"),228+ ("edith 2\nsource test_av.mp4\nclip 0 30 0\n", "line 1"),
229 ("not a project at all\n", "line 1"),229 ("not a project at all\n", "line 1"),
230- ("veproj 1\nsource test_av.mp4\nclip 0 30\n", "line 3"),230+ ("edith 1\nsource test_av.mp4\nclip 0 30\n", "line 3"),
231- ("veproj 1\nsource test_av.mp4\nclip 0 30 4\n", "line 3"),231+ ("edith 1\nsource test_av.mp4\nclip 0 30 4\n", "line 3"),
232- ("veproj 1\nsource test_av.mp4\nclip 30 30 0\n", "line 3"),232+ ("edith 1\nsource test_av.mp4\nclip 30 30 0\n", "line 3"),
233- ("veproj 1\nsource test_av.mp4\n\nclip 0 30 0\n", "line 3"),233+ ("edith 1\nsource test_av.mp4\n\nclip 0 30 0\n", "line 3"),
234- ("veproj 1\nsource test_av.mp4\nwhat 1\n", "line 3"),234+ ("edith 1\nsource test_av.mp4\nwhat 1\n", "line 3"),
235 ] {235 ] {
236 std::fs::write(&path, text).expect("write");236 std::fs::write(&path, text).expect("write");
237 let err = PlaybackSession::open_project(&path)237 let err = PlaybackSession::open_project(&path)
@@ -257,10 +257,10 @@ fn a_source_that_no_longer_matches_the_timeline_is_refused_in_import_words() {
257 let dir = scratch("mismatch");257 let dir = scratch("mismatch");
258 copy_in(&dir, "test_av.mp4");258 copy_in(&dir, "test_av.mp4");
259 std::fs::copy(asset("test_mismatch.mp4"), dir.join("test_av2.mp4")).expect("substitute");259 std::fs::copy(asset("test_mismatch.mp4"), dir.join("test_av2.mp4")).expect("substitute");
260- let path = dir.join("swapped.veproj");260+ let path = dir.join("swapped.edith");
261 std::fs::write(261 std::fs::write(
262 &path,262 &path,
263- "veproj 1\nplayhead 0\nsource test_av.mp4\nsource test_av2.mp4\nclip 0 30 0\nclip 0 30 1\n",263+ "edith 1\nplayhead 0\nsource test_av.mp4\nsource test_av2.mp4\nclip 0 30 0\nclip 0 30 1\n",
264 )264 )
265 .expect("write");265 .expect("write");
266 let err = PlaybackSession::open_project(&path)266 let err = PlaybackSession::open_project(&path)