Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2023-04-10 17:32:41 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-04-10 23:47:12 +0300
commit4fcbb6ae617446892474ec2c3b909c4ae40c7a88 (patch)
tree883bc201bc1d4d1a4ef1046abd8ec001a43f956f /text
parent3eca8c60e378deaba72a5cf9186e8980076fc47c (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.rs4
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