mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
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:
parent
9cb211470f
commit
762fb86ce7
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue