forked from mirrors/gstreamer-rs
Add bindings for basetransform/src get_buffer_pool()
This commit is contained in:
parent
5df360a983
commit
2d97d96874
2 changed files with 12 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue