textwrap: add some logs

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1171>
This commit is contained in:
Mathieu Duponchelle 2023-04-10 16:32:41 +02:00 committed by GStreamer Marge Bot
parent 3eca8c60e3
commit 4fcbb6ae61

View file

@ -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