From 4fcbb6ae617446892474ec2c3b909c4ae40c7a88 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Mon, 10 Apr 2023 16:32:41 +0200 Subject: [PATCH] textwrap: add some logs Part-of: --- text/wrap/src/gsttextwrap/imp.rs | 4 ++++ 1 file changed, 4 insertions(+) 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