mccparse/sccparse: Don't log gst::FlowError::Flushing or Eos as error to the debug logs

This commit is contained in:
Sebastian Dröge 2022-05-03 15:32:07 +03:00
parent 8fcdfc1d41
commit 5c426a3649
2 changed files with 4 additions and 2 deletions

View file

@ -567,7 +567,7 @@ impl MccParse {
}
self.srcpad.push(buffer).map_err(|err| {
if err != gst::FlowError::Flushing {
if err != gst::FlowError::Flushing && err != gst::FlowError::Eos {
gst_error!(CAT, obj: element, "Pushing buffer returned {:?}", err);
}
err

View file

@ -457,7 +457,9 @@ impl SccParse {
}
self.srcpad.push_list(buffers).map_err(|err| {
gst_error!(CAT, obj: element, "Pushing buffer returned {:?}", err);
if err != gst::FlowError::Flushing && err != gst::FlowError::Eos {
gst_error!(CAT, obj: element, "Pushing buffer returned {:?}", err);
}
err
})?;