mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-01 09:13:48 +00:00
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:
parent
5525a2b80a
commit
e480aebcf2
1 changed files with 14 additions and 7 deletions
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue