rav1enc: Don't handle NeedMoreData as "soft" error

This commit is contained in:
Sebastian Dröge 2022-02-06 21:47:52 +02:00 committed by Sebastian Dröge
parent d3d483d0b5
commit 1b8ee90f83

View file

@ -981,6 +981,10 @@ impl Rav1Enc {
Err(data::EncoderStatus::Encoded) => { Err(data::EncoderStatus::Encoded) => {
gst_debug!(CAT, obj: element, "Encoded but not output frame yet",); 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) => { Err(data::EncoderStatus::Failure) => {
gst::element_error!( gst::element_error!(
element, element,