diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-04-10 17:32:41 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-04-22 11:55:13 +0300 |
commit | 701f53b9feb393cf63d1515ab1120b0378488b57 (patch) | |
tree | 5005b6a0de65cb454df42734a6e28013219354bd /text | |
parent | d2db786136ac31da0eb5c09a41ef269c6e8506fb (diff) |
textwrap: add some logs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1189>
Diffstat (limited to 'text')
-rw-r--r-- | text/wrap/src/gsttextwrap/imp.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 |