threadshare: runtime/pad: lower log level pushing Buffer to flushing pad

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2512>
This commit is contained in:
François Laignel 2025-08-28 16:08:06 +02:00
parent 5525a2b80a
commit e480aebcf2

View file

@ -203,15 +203,22 @@ impl PadSrcInner {
}
pub async fn push(&self, buffer: gst::Buffer) -> Result<FlowSuccess, FlowError> {
gst::log!(RUNTIME_CAT, obj = self.gst_pad, "Pushing {:?}", buffer);
gst::log!(RUNTIME_CAT, obj = self.gst_pad, "Pushing {buffer:?}");
let success = self.gst_pad.push(buffer).inspect_err(|&err| {
gst::error!(
RUNTIME_CAT,
obj = self.gst_pad,
"Failed to push Buffer to PadSrc: {:?}",
err,
);
if err == gst::FlowError::Flushing {
gst::debug!(
RUNTIME_CAT,
obj = self.gst_pad,
"Failed to push Buffer to PadSrc: Flushing"
);
} else {
gst::error!(
RUNTIME_CAT,
obj = self.gst_pad,
"Failed to push Buffer to PadSrc: {err:?}"
);
}
})?;
gst::log!(