video/video_buffer_pool: Implement ToGlibPtr for VideoAlignment

This will be used by the GL bindings.
This commit is contained in:
Marijn Suijten 2021-01-04 23:45:29 +01:00 committed by Sebastian Dröge
parent 48f74d39e8
commit b8756a3bd8

View file

@ -83,6 +83,15 @@ impl PartialEq for VideoAlignment {
impl Eq for VideoAlignment {}
#[doc(hidden)]
impl<'a> ToGlibPtr<'a, *const ffi::GstVideoAlignment> for VideoAlignment {
type Storage = &'a Self;
fn to_glib_none(&'a self) -> Stash<*const ffi::GstVideoAlignment, Self> {
Stash(&self.0, self)
}
}
pub trait VideoBufferPoolConfig {
fn video_alignment(&self) -> Option<VideoAlignment>;