Commit 2d97d968 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Add bindings for basetransform/src get_buffer_pool()

parent 5df360a9
......@@ -39,7 +39,7 @@ pub trait BaseSrcExt {
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;
......@@ -101,9 +101,11 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
}
//fn get_buffer_pool(&self) -> /*Ignored*/Option<gst::BufferPool> {
// unsafe { TODO: call ffi::gst_base_src_get_buffer_pool() }
//}
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
unsafe {
from_glib_full(ffi::gst_base_src_get_buffer_pool(self.to_glib_none().0))
}
}
fn get_do_timestamp(&self) -> bool {
unsafe {
......
......@@ -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<gst::BufferPool>;
fn get_buffer_pool(&self) -> Option<gst::BufferPool>;
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() }
//}
//fn get_buffer_pool(&self) -> /*Ignored*/Option<gst::BufferPool> {
// unsafe { TODO: call ffi::gst_base_transform_get_buffer_pool() }
//}
fn get_buffer_pool(&self) -> Option<gst::BufferPool> {
unsafe {
from_glib_full(ffi::gst_base_transform_get_buffer_pool(self.to_glib_none().0))
}
}
fn is_in_place(&self) -> bool {
unsafe {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment