diff options
author | François Laignel <fengalin@free.fr> | 2022-02-21 20:43:46 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2022-02-21 22:50:01 +0300 |
commit | 422ea740ca937c3d669b7c961a67a09d9b1baed0 (patch) | |
tree | d6b0333340dcb3621a2195d2b92ffb23e402d5b6 /text/ahead | |
parent | 8263e19313df6af6bb9dc59bad94bec0769192fc (diff) |
Update to gst::_log_macro_
See the details:
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/980
Diffstat (limited to 'text/ahead')
-rw-r--r-- | text/ahead/src/textahead/imp.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/text/ahead/src/textahead/imp.rs b/text/ahead/src/textahead/imp.rs index 0da70317..48ed011a 100644 --- a/text/ahead/src/textahead/imp.rs +++ b/text/ahead/src/textahead/imp.rs @@ -13,7 +13,6 @@ use once_cell::sync::Lazy; use gst::glib; use gst::prelude::*; use gst::subclass::prelude::*; -use gst::{gst_debug, gst_log}; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( @@ -272,7 +271,7 @@ impl TextAhead { // queue buffer let mut state = self.state.lock().unwrap(); - gst_log!(CAT, obj: element, "input {:?}: {}", pts, text); + gst::log!(CAT, obj: element, "input {:?}: {}", pts, text); state.pending.push(Input { text, @@ -299,7 +298,7 @@ impl TextAhead { gst::EventView::Eos(_) => { let mut state = self.state.lock().unwrap(); - gst_debug!(CAT, obj: element, "eos"); + gst::debug!(CAT, obj: element, "eos"); while !state.pending.is_empty() { let _ = self.push_pending(element, &mut state); @@ -354,7 +353,7 @@ impl TextAhead { } } - gst_log!(CAT, obj: element, "output {:?}: {}", first.pts, text); + gst::log!(CAT, obj: element, "output {:?}: {}", first.pts, text); let mut output = gst::Buffer::from_mut_slice(text.into_bytes()); { |