diff --git a/gstreamer/src/message.rs b/gstreamer/src/message.rs index 3e754794b..23098d7d1 100644 --- a/gstreamer/src/message.rs +++ b/gstreamer/src/message.rs @@ -155,7 +155,14 @@ impl fmt::Debug for MessageRef { CStr::from_ptr(type_).to_str().unwrap() }) .field("seqnum", seqnum) - .field("src", &self.get_src().map(|s| s.get_name())) + .field( + "src", + &self + .get_src() + .map(|s| s.get_name()) + .as_ref() + .map(glib::GString::as_str), + ) .field("structure", &self.get_structure()) .finish() }