diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-04-10 17:32:41 +0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-04-10 23:47:12 +0300 |
commit | 4fcbb6ae617446892474ec2c3b909c4ae40c7a88 (patch) | |
tree | 883bc201bc1d4d1a4ef1046abd8ec001a43f956f /text | |
parent | 3eca8c60e378deaba72a5cf9186e8980076fc47c (diff) |
textwrap: add some logs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1171>
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 9578e582f..918476506 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 |