diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index fe9dbc487..d3d6e231e 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -39,7 +39,7 @@ pub trait BaseSrcExt { fn get_blocksize(&self) -> u32; - //fn get_buffer_pool(&self) -> /*Ignored*/Option; + fn get_buffer_pool(&self) -> Option; fn get_do_timestamp(&self) -> bool; @@ -101,9 +101,11 @@ impl + IsA> BaseSrcExt for O { } } - //fn get_buffer_pool(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gst_base_src_get_buffer_pool() } - //} + fn get_buffer_pool(&self) -> Option { + unsafe { + from_glib_full(ffi::gst_base_src_get_buffer_pool(self.to_glib_none().0)) + } + } fn get_do_timestamp(&self) -> bool { unsafe { diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 63f245c67..ba8397382 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -37,7 +37,7 @@ unsafe impl Sync for BaseTransform {} pub trait BaseTransformExt { //fn get_allocator(&self, allocator: /*Ignored*/gst::Allocator, params: /*Ignored*/gst::AllocationParams); - //fn get_buffer_pool(&self) -> /*Ignored*/Option; + fn get_buffer_pool(&self) -> Option; fn is_in_place(&self) -> bool; @@ -75,9 +75,11 @@ impl + IsA> BaseTransformExt for O { // unsafe { TODO: call ffi::gst_base_transform_get_allocator() } //} - //fn get_buffer_pool(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gst_base_transform_get_buffer_pool() } - //} + fn get_buffer_pool(&self) -> Option { + unsafe { + from_glib_full(ffi::gst_base_transform_get_buffer_pool(self.to_glib_none().0)) + } + } fn is_in_place(&self) -> bool { unsafe {