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 f908cbaffd
commit 4a2c93299e
2 changed files with 4 additions and 2 deletions

View file

@ -564,7 +564,7 @@ impl MccParse {
} }
self.srcpad.push(buffer).map_err(|err| { 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); gst::error!(CAT, obj: element, "Pushing buffer returned {:?}", err);
} }
err err

View file

@ -454,7 +454,9 @@ impl SccParse {
} }
self.srcpad.push_list(buffers).map_err(|err| { 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 err
})?; })?;