forked from mirrors/gstreamer-rs
video/video_buffer_pool: Implement ToGlibPtr for VideoAlignment
This will be used by the GL bindings.
This commit is contained in:
parent
48f74d39e8
commit
b8756a3bd8
1 changed files with 9 additions and 0 deletions
|
@ -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>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue