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 /generic/file/src/filesrc/imp.rs | |
parent | 8263e19313df6af6bb9dc59bad94bec0769192fc (diff) |
Update to gst::_log_macro_
See the details:
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/980
Diffstat (limited to 'generic/file/src/filesrc/imp.rs')
-rw-r--r-- | generic/file/src/filesrc/imp.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs index dab3b7088..701ace4aa 100644 --- a/generic/file/src/filesrc/imp.rs +++ b/generic/file/src/filesrc/imp.rs @@ -12,7 +12,6 @@ use gst::glib; use gst::prelude::*; use gst::subclass::prelude::*; -use gst::{gst_debug, gst_error, gst_info}; use gst_base::prelude::*; use gst_base::subclass::prelude::*; @@ -98,7 +97,7 @@ impl FileSrc { match settings.location { Some(ref location_cur) => { - gst_info!( + gst::info!( CAT, obj: element, "Changing `location` from {:?} to {}", @@ -107,13 +106,13 @@ impl FileSrc { ); } None => { - gst_info!(CAT, obj: element, "Setting `location to {}", location,); + gst::info!(CAT, obj: element, "Setting `location to {}", location,); } } Some(location) } None => { - gst_info!(CAT, obj: element, "Resetting `location` to None",); + gst::info!(CAT, obj: element, "Resetting `location` to None",); None } }; @@ -162,7 +161,7 @@ impl ObjectImpl for FileSrc { }; if let Err(err) = res { - gst_error!(CAT, obj: obj, "Failed to set property `location`: {}", err); + gst::error!(CAT, obj: obj, "Failed to set property `location`: {}", err); } } _ => unimplemented!(), @@ -264,11 +263,11 @@ impl BaseSrcImpl for FileSrc { ) })?; - gst_debug!(CAT, obj: element, "Opened file {:?}", file); + gst::debug!(CAT, obj: element, "Opened file {:?}", file); *state = State::Started { file, position: 0 }; - gst_info!(CAT, obj: element, "Started"); + gst::info!(CAT, obj: element, "Started"); Ok(()) } @@ -284,7 +283,7 @@ impl BaseSrcImpl for FileSrc { *state = State::Stopped; - gst_info!(CAT, obj: element, "Stopped"); + gst::info!(CAT, obj: element, "Stopped"); Ok(()) } |