mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 08:36:31 +00:00
video/video_rectangle: Add ToGlibPtrMut implementation
Vulkan passes a mutable pointer to an uninitialized `VideoRectangle` into the C API for retrieval.
This commit is contained in:
parent
430abb1e9d
commit
212d4ef008
1 changed files with 11 additions and 0 deletions
|
@ -54,3 +54,14 @@ impl glib::translate::Uninitialized for VideoRectangle {
|
|||
mem::zeroed()
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
impl<'a> glib::translate::ToGlibPtrMut<'a, *mut ffi::GstVideoRectangle> for VideoRectangle {
|
||||
type Storage = &'a mut Self;
|
||||
|
||||
fn to_glib_none_mut(
|
||||
&'a mut self,
|
||||
) -> glib::translate::StashMut<*mut ffi::GstVideoRectangle, Self> {
|
||||
glib::translate::StashMut(self as *mut _ as *mut _, self)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue