mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-10 20:31:10 +00:00
net/aws: don't discard errors from transcribe loop
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1760>
This commit is contained in:
parent
e72db57179
commit
65508cfe75
1 changed files with 9 additions and 1 deletions
|
@ -451,7 +451,15 @@ impl Transcriber {
|
|||
// `transcriber_next` takes precedence over `timeout`
|
||||
// because we don't want to loose any incoming items.
|
||||
let res = futures::select_biased! {
|
||||
event = transcriber_next => Some(event?),
|
||||
event = transcriber_next => {
|
||||
match event {
|
||||
Ok(event) => Some(event),
|
||||
Err(err) => {
|
||||
gst::element_imp_error!(imp, gst::StreamError::Failed, ["Streaming failed: {err}"]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
_ = timeout => None,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue