Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/net/aws
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2023-04-05 17:21:04 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-04-05 21:22:59 +0300
commit762fb86ce72f9bb4fbafd93d8cd79726fb2d536d (patch)
tree97f7d3a02a9a6ac93faa8235104e49d93731328e /net/aws
parent9cb211470f4920306c325c18009066532e9aee17 (diff)
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>
Diffstat (limited to 'net/aws')
-rw-r--r--net/aws/src/transcriber/imp.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/aws/src/transcriber/imp.rs b/net/aws/src/transcriber/imp.rs
index a177f6c7e..c6715a75b 100644
--- a/net/aws/src/transcriber/imp.rs
+++ b/net/aws/src/transcriber/imp.rs
@@ -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")