ndisrc: receiver: Improve debug message when receiving frames

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1727>
This commit is contained in:
Sebastian Dröge 2024-08-16 18:00:19 +03:00 committed by GStreamer Marge Bot
parent 84fef267b5
commit 04da3b2047
2 changed files with 10 additions and 5 deletions

View file

@ -644,8 +644,7 @@ impl NdiSrc {
gst::log!( gst::log!(
CAT, CAT,
imp = self, imp = self,
"Received frame with timecode {}, timestamp {}, duration {}, receive time {}, local time now {}", "Received frame of type {idx} with timecode {timecode}, timestamp {}, duration {}, receive time {}, local time now {}",
timecode,
timestamp.display(), timestamp.display(),
duration.display(), duration.display(),
receive_time_gst.display(), receive_time_gst.display(),

View file

@ -337,8 +337,10 @@ impl Receiver {
gst::debug!( gst::debug!(
CAT, CAT,
obj = element, obj = element,
"Received video frame at timecode {}: {:?}", "Received video frame with timecode {} at {} (wallclock: {}): {:?}",
(frame.timecode() as u64 * 100).nseconds(), (frame.timecode() as u64 * 100).nseconds(),
receive_time_gst,
receive_time_real,
frame, frame,
); );
@ -356,8 +358,10 @@ impl Receiver {
gst::debug!( gst::debug!(
CAT, CAT,
obj = element, obj = element,
"Received audio frame at timecode {}: {:?}", "Received audio frame with timecode {} at {} (wallclock: {}): {:?}",
(frame.timecode() as u64 * 100).nseconds(), (frame.timecode() as u64 * 100).nseconds(),
receive_time_gst,
receive_time_real,
frame, frame,
); );
@ -372,8 +376,10 @@ impl Receiver {
gst::debug!( gst::debug!(
CAT, CAT,
obj = element, obj = element,
"Received metadata frame at timecode {}: {:?}", "Received metadata frame with timecode {} at {} (wallclock: {}): {:?}",
(frame.timecode() as u64 * 100).nseconds(), (frame.timecode() as u64 * 100).nseconds(),
receive_time_gst,
receive_time_real,
frame, frame,
); );
Ok(Buffer::Metadata { Ok(Buffer::Metadata {