From bb641f353c3dd81f5e3b16ecaf1fae669b3ac67b Mon Sep 17 00:00:00 2001 From: Malte Voos Date: Thu, 25 Dec 2025 11:05:19 +0100 Subject: fix whisper subtitles not appearing in subtitle selection menu --- src/subtitles/mod.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/subtitles/mod.rs') diff --git a/src/subtitles/mod.rs b/src/subtitles/mod.rs index a545d52..acb73dc 100644 --- a/src/subtitles/mod.rs +++ b/src/subtitles/mod.rs @@ -26,9 +26,8 @@ pub struct SubtitleCue { pub end_time: gst::ClockTime, } -#[derive(Debug, Clone)] +#[derive(Default, Debug, Clone)] pub struct SubtitleTrack { - pub metadata: TrackMetadata, // SoA of cue text, start timestamp, end timestamp pub texts: Vec, pub start_times: Vec, @@ -50,15 +49,6 @@ impl TrackMetadata { } impl SubtitleTrack { - pub fn new(metadata: TrackMetadata) -> Self { - Self { - metadata, - texts: Vec::new(), - start_times: Vec::new(), - end_times: Vec::new(), - } - } - pub fn push_cue(&mut self, cue: SubtitleCue) { let SubtitleCue { text, -- cgit 1.4.1