diff --git a/gstreamer/src/error.rs b/gstreamer/src/error.rs index cba004469..520b2a631 100644 --- a/gstreamer/src/error.rs +++ b/gstreamer/src/error.rs @@ -145,7 +145,7 @@ impl LoggableError { pub fn log(&self) { self.category.log( - None as Option<&glib::Object>, + None as Option<&::Object>, ::DebugLevel::Error, self.bool_error.filename, self.bool_error.function, @@ -154,7 +154,7 @@ impl LoggableError { ); } - pub fn log_with_object>(&self, obj: &O) { + pub fn log_with_object>(&self, obj: &O) { self.category.log( Some(obj), ::DebugLevel::Error, diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index 272a0e6ce..a53adafd2 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -122,7 +122,7 @@ impl DebugCategory { } #[inline] - pub fn log>( + pub fn log>( self, obj: Option<&O>, level: ::DebugLevel, @@ -304,7 +304,7 @@ macro_rules! gst_log_with_level( module_path!(), line!(), format_args!($($args)*)) }}; ($cat:expr, level: $level:expr, $($args:tt)*) => { { - $crate::DebugCategory::log($cat.clone(), None as Option<&$crate::glib::Object>, $level, file!(), + $crate::DebugCategory::log($cat.clone(), None as Option<&$crate::Object>, $level, file!(), module_path!(), line!(), format_args!($($args)*)) }}; );