oximedia_proxy/timecode/
preserve.rs1use crate::Result;
4
5pub struct TimecodePreserver;
7
8impl TimecodePreserver {
9 #[must_use]
11 pub const fn new() -> Self {
12 Self
13 }
14
15 pub fn preserve(&self, _original_timecode: &str, _proxy_path: &std::path::Path) -> Result<()> {
17 Ok(())
19 }
20
21 pub fn verify(&self, _original: &std::path::Path, _proxy: &std::path::Path) -> Result<bool> {
23 Ok(true)
25 }
26}
27
28impl Default for TimecodePreserver {
29 fn default() -> Self {
30 Self::new()
31 }
32}
33
34#[cfg(test)]
35mod tests {
36 use super::*;
37
38 #[test]
39 fn test_timecode_preserver() {
40 let preserver = TimecodePreserver::new();
41 let result = preserver.preserve("01:00:00:00", std::path::Path::new("proxy.mp4"));
42 assert!(result.is_ok());
43 }
44}