From 076a75e3c282a8e2c73fae2080c264f7f87d2808 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 30 Sep 2025 05:57:25 -0500 Subject: [PATCH] ensure video is paused at start of video_editor --- src/ui/video_editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/video_editor.rs b/src/ui/video_editor.rs index d0d4fd2..1a6343c 100644 --- a/src/ui/video_editor.rs +++ b/src/ui/video_editor.rs @@ -52,7 +52,7 @@ impl VideoEditor { pub fn update(&mut self, message: Message) -> Action { match message { Message::ChangeVideo(video) => { - let Ok(player_video) = Url::from_file_path( + let Ok(mut player_video) = Url::from_file_path( video.path.clone(), ) .map(|url| Video::new(&url).expect("Should be here")) else { @@ -61,7 +61,7 @@ impl VideoEditor { self.core_video = Some(video); return Action::None; }; - + player_video.set_paused(true); self.video = Some(player_video); self.title = video.title.clone(); self.core_video = Some(video.clone());