fallbackswitch: Improve some debug outputs

Don't print "buffer buffer ...".
This commit is contained in:
Sebastian Dröge 2022-04-13 12:49:44 +03:00 committed by Sebastian Dröge
parent ca7cf7dee7
commit bbb7ced95a

View file

@ -556,7 +556,7 @@ impl FallbackSwitch {
trace!( trace!(
CAT, CAT,
obj: pad, obj: pad,
"Clipping buffer {:?} against segment {:?}", "Clipping {:?} against segment {:?}",
buffer, buffer,
pad_state.segment, pad_state.segment,
); );
@ -625,7 +625,7 @@ impl FallbackSwitch {
log!( log!(
CAT, CAT,
obj: pad, obj: pad,
"Handling buffer {:?} run ts start {} end {} pad active {}", "Handling {:?} run ts start {} end {} pad active {}",
buffer, buffer,
start_running_time.display(), start_running_time.display(),
end_running_time.display(), end_running_time.display(),
@ -729,7 +729,7 @@ impl FallbackSwitch {
drop(pad_state); drop(pad_state);
if !is_active { if !is_active {
log!(CAT, obj: pad, "Dropping {:?}", buffer); log!(CAT, obj: pad, "Dropping {:?} on inactive pad", buffer);
return Ok(gst::FlowSuccess::Ok); return Ok(gst::FlowSuccess::Ok);
} }
let _stream_lock = self.src_pad.stream_lock(); let _stream_lock = self.src_pad.stream_lock();