Add bindings for basetransform/src get_buffer_pool()

This commit is contained in:
Sebastian Dröge 2018-07-30 11:54:24 +03:00
parent 5df360a983
commit 2d97d96874
2 changed files with 12 additions and 8 deletions

View file

@ -39,7 +39,7 @@ pub trait BaseSrcExt {
fn get_blocksize(&self) -> u32; fn get_blocksize(&self) -> u32;
//fn get_buffer_pool(&self) -> /*Ignored*/Option<gst::BufferPool>; fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
fn get_do_timestamp(&self) -> bool; fn get_do_timestamp(&self) -> bool;
@ -101,9 +101,11 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
} }
} }
//fn get_buffer_pool(&self) -> /*Ignored*/Option<gst::BufferPool> { fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
// unsafe { TODO: call ffi::gst_base_src_get_buffer_pool() } unsafe {
//} from_glib_full(ffi::gst_base_src_get_buffer_pool(self.to_glib_none().0))
}
}
fn get_do_timestamp(&self) -> bool { fn get_do_timestamp(&self) -> bool {
unsafe { unsafe {

View file

@ -37,7 +37,7 @@ unsafe impl Sync for BaseTransform {}
pub trait BaseTransformExt { pub trait BaseTransformExt {
//fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams); //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams);
//fn get_buffer_pool(&self) -> /*Ignored*/Option<gst::BufferPool>; fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
fn is_in_place(&self) -> bool; fn is_in_place(&self) -> bool;
@ -75,9 +75,11 @@ impl<O: IsA<BaseTransform> + IsA<glib::object::Object>> BaseTransformExt for O {
// unsafe { TODO: call ffi::gst_base_transform_get_allocator() } // unsafe { TODO: call ffi::gst_base_transform_get_allocator() }
//} //}
//fn get_buffer_pool(&self) -> /*Ignored*/Option<gst::BufferPool> { fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
// unsafe { TODO: call ffi::gst_base_transform_get_buffer_pool() } unsafe {
//} from_glib_full(ffi::gst_base_transform_get_buffer_pool(self.to_glib_none().0))
}
}
fn is_in_place(&self) -> bool { fn is_in_place(&self) -> bool {
unsafe { unsafe {