From 22c7240bad88e45f2c165d3618ca03328d179b40 Mon Sep 17 00:00:00 2001 From: rubenrua Date: Mon, 24 Sep 2018 18:15:33 +0200 Subject: [PATCH] Add debug info about latency --- src/ndiaudiosrc.rs | 1 + src/ndivideosrc.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ndiaudiosrc.rs b/src/ndiaudiosrc.rs index 9b53a751..05c2d02a 100644 --- a/src/ndiaudiosrc.rs +++ b/src/ndiaudiosrc.rs @@ -284,6 +284,7 @@ impl BaseSrcImpl for NdiAudioSrc { if let Some(ref _info) = state.info { let latency = settings.latency.unwrap(); + gst_debug!(self.cat, obj: element, "Returning latency {}", latency); q.set(true, latency, gst::CLOCK_TIME_NONE); return true; } else { diff --git a/src/ndivideosrc.rs b/src/ndivideosrc.rs index c65c57c5..876b5a41 100644 --- a/src/ndivideosrc.rs +++ b/src/ndivideosrc.rs @@ -285,6 +285,7 @@ impl BaseSrcImpl for NdiVideoSrc { if let Some(ref _info) = state.info { let latency = settings.latency.unwrap(); + gst_debug!(self.cat, obj: element, "Returning latency {}", latency); q.set(true, latency, gst::CLOCK_TIME_NONE); return true; } else {