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:
Mathieu Duponchelle 2024-08-30 16:23:31 +02:00 committed by GStreamer Marge Bot
parent e72db57179
commit 65508cfe75

View file

@ -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,
};