diff --git a/gstreamer/src/miniobject.rs b/gstreamer/src/miniobject.rs index 7e5136a3c..2be830a6a 100644 --- a/gstreamer/src/miniobject.rs +++ b/gstreamer/src/miniobject.rs @@ -515,6 +515,10 @@ macro_rules! gst_define_mini_object_wrapper( pub unsafe fn into_ptr(self) -> *mut $ffi_name { self.0.into_ptr() } + + pub fn copy(&self) -> Self { + $name(self.0.copy()) + } } impl From<$crate::GstRc<$ref_name>> for $name {