mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
textwrap: add some logs
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1171>
This commit is contained in:
parent
3eca8c60e3
commit
4fcbb6ae61
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue