mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-02 21:39:23 +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
|
@ -211,6 +211,8 @@ impl Transcriber {
|
||||||
transcriber_loop_handle.abort();
|
transcriber_loop_handle.abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state.start_time = None;
|
||||||
|
|
||||||
gst::debug!(CAT, imp: self, "Tasks Stopped");
|
gst::debug!(CAT, imp: self, "Tasks Stopped");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1488,6 +1490,7 @@ impl TranslationPadTask {
|
||||||
|
|
||||||
self.seqnum = elem_state.seqnum;
|
self.seqnum = elem_state.seqnum;
|
||||||
pad_state.out_segment = Default::default();
|
pad_state.out_segment = Default::default();
|
||||||
|
pad_state.start_time = None;
|
||||||
|
|
||||||
events.push(
|
events.push(
|
||||||
gst::event::StreamStart::builder("transcription")
|
gst::event::StreamStart::builder("transcription")
|
||||||
|
|
Loading…
Reference in a new issue