awstranscriber: Reset start_time per task

Otherwise wrong start time can be assigned if the element is
reused with state change

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1159>
This commit is contained in:
Seungha Yang 2023-04-05 23:21:04 +09:00 committed by GStreamer Marge Bot
parent 9cb211470f
commit 762fb86ce7

View file

@ -211,6 +211,8 @@ impl Transcriber {
transcriber_loop_handle.abort();
}
state.start_time = None;
gst::debug!(CAT, imp: self, "Tasks Stopped");
}
@ -1488,6 +1490,7 @@ impl TranslationPadTask {
self.seqnum = elem_state.seqnum;
pad_state.out_segment = Default::default();
pad_state.start_time = None;
events.push(
gst::event::StreamStart::builder("transcription")