From 1b8ee90f832acf92e303ac7d72488d6de032bbfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 6 Feb 2022 21:47:52 +0200 Subject: [PATCH] rav1enc: Don't handle `NeedMoreData` as "soft" error --- video/rav1e/src/rav1enc/imp.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs index 9d3eaf11..ca7e5b75 100644 --- a/video/rav1e/src/rav1enc/imp.rs +++ b/video/rav1e/src/rav1enc/imp.rs @@ -981,6 +981,10 @@ impl Rav1Enc { Err(data::EncoderStatus::Encoded) => { gst_debug!(CAT, obj: element, "Encoded but not output frame yet",); } + Err(data::EncoderStatus::NeedMoreData) => { + gst_debug!(CAT, obj: element, "Encoded but need more data",); + return Ok(gst::FlowSuccess::Ok); + } Err(data::EncoderStatus::Failure) => { gst::element_error!( element,