From 30dbda1a1cfdc2649bb723f307eec9b8157f6521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Brzezin=CC=81ski?= Date: Fri, 13 Dec 2024 12:23:46 +0100 Subject: [PATCH] log: Add as_ptr() for DebugMessage Part-of: --- gstreamer/src/log.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gstreamer/src/log.rs b/gstreamer/src/log.rs index b5bee8984..7f2bb6aa6 100644 --- a/gstreamer/src/log.rs +++ b/gstreamer/src/log.rs @@ -66,6 +66,11 @@ impl DebugMessage { } } } + + #[inline] + pub fn as_ptr(&self) -> *mut ffi::GstDebugMessage { + self.0.as_ptr() + } } #[derive(PartialEq, Eq, Clone, Copy, Hash)]