forked from mirrors/gstreamer-rs
buffer_pool: use to_glib_none() to cast BufferPoolAcquireParams
This commit is contained in:
parent
fca4441a72
commit
05519219ef
1 changed files with 1 additions and 5 deletions
|
@ -296,11 +296,7 @@ impl<O: IsA<BufferPool>> BufferPoolExtManual for O {
|
||||||
&self,
|
&self,
|
||||||
params: P,
|
params: P,
|
||||||
) -> Result<::Buffer, ::FlowError> {
|
) -> Result<::Buffer, ::FlowError> {
|
||||||
let params = params.into();
|
let params_ptr = params.into().to_glib_none().0 as *mut _;
|
||||||
let params_ptr = match params {
|
|
||||||
Some(params) => ¶ms.0 as *const _ as *mut _,
|
|
||||||
None => ptr::null_mut(),
|
|
||||||
};
|
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut buffer = ptr::null_mut();
|
let mut buffer = ptr::null_mut();
|
||||||
|
|
Loading…
Reference in a new issue