diff --git a/gstreamer/src/message.rs b/gstreamer/src/message.rs index e1fbd2067..33b782602 100644 --- a/gstreamer/src/message.rs +++ b/gstreamer/src/message.rs @@ -35,7 +35,7 @@ unsafe impl MiniObject for MessageRef { } impl MessageRef { - pub fn get_src(&self) -> Object { + pub fn get_src(&self) -> Option { unsafe { from_glib_none((*self.as_ptr()).src) } }