From 04da3b2047c436dbb28cf891cafd42b83bbd1b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 16 Aug 2024 18:00:19 +0300 Subject: [PATCH] ndisrc: receiver: Improve debug message when receiving frames Part-of: --- net/ndi/src/ndisrc/imp.rs | 3 +-- net/ndi/src/ndisrc/receiver.rs | 12 +++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/net/ndi/src/ndisrc/imp.rs b/net/ndi/src/ndisrc/imp.rs index e544fc4af..6f3fdbfa1 100644 --- a/net/ndi/src/ndisrc/imp.rs +++ b/net/ndi/src/ndisrc/imp.rs @@ -644,8 +644,7 @@ impl NdiSrc { gst::log!( CAT, imp = self, - "Received frame with timecode {}, timestamp {}, duration {}, receive time {}, local time now {}", - timecode, + "Received frame of type {idx} with timecode {timecode}, timestamp {}, duration {}, receive time {}, local time now {}", timestamp.display(), duration.display(), receive_time_gst.display(), diff --git a/net/ndi/src/ndisrc/receiver.rs b/net/ndi/src/ndisrc/receiver.rs index f46af5e0c..03681d0f2 100644 --- a/net/ndi/src/ndisrc/receiver.rs +++ b/net/ndi/src/ndisrc/receiver.rs @@ -337,8 +337,10 @@ impl Receiver { gst::debug!( CAT, obj = element, - "Received video frame at timecode {}: {:?}", + "Received video frame with timecode {} at {} (wallclock: {}): {:?}", (frame.timecode() as u64 * 100).nseconds(), + receive_time_gst, + receive_time_real, frame, ); @@ -356,8 +358,10 @@ impl Receiver { gst::debug!( CAT, obj = element, - "Received audio frame at timecode {}: {:?}", + "Received audio frame with timecode {} at {} (wallclock: {}): {:?}", (frame.timecode() as u64 * 100).nseconds(), + receive_time_gst, + receive_time_real, frame, ); @@ -372,8 +376,10 @@ impl Receiver { gst::debug!( CAT, obj = element, - "Received metadata frame at timecode {}: {:?}", + "Received metadata frame with timecode {} at {} (wallclock: {}): {:?}", (frame.timecode() as u64 * 100).nseconds(), + receive_time_gst, + receive_time_real, frame, ); Ok(Buffer::Metadata {