From 701f53b9feb393cf63d1515ab1120b0378488b57 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 10 Apr 2023 16:32:41 +0200 Subject: textwrap: add some logs Part-of: --- text/wrap/src/gsttextwrap/imp.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'text') diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs index 9578e582..91847650 100644 --- a/text/wrap/src/gsttextwrap/imp.rs +++ b/text/wrap/src/gsttextwrap/imp.rs @@ -148,6 +148,8 @@ impl TextWrap { gst::FlowError::Error })?; + gst::log!(CAT, imp: self, "processing {data} in {buffer:?}"); + let accumulate_time = self.settings.lock().unwrap().accumulate_time; let mut state = self.state.lock().unwrap(); @@ -265,6 +267,8 @@ impl TextWrap { textwrap::fill(data, options) }; + gst::log!(CAT, imp: self, "fill result: {data}"); + // If the lines property was set, we want to split the result into buffers // of at most N lines. We compute the duration for each of those based on // the total number of words, and the number of words in each of the split-up -- cgit v1.2.3