Commit 05519219 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐

buffer_pool: use to_glib_none() to cast BufferPoolAcquireParams

parent fca4441a
Pipeline #35480 passed with stages
in 94 minutes and 47 seconds
......@@ -296,11 +296,7 @@ impl<O: IsA<BufferPool>> BufferPoolExtManual for O {
&self,
params: P,
) -> Result<::Buffer, ::FlowError> {
let params = params.into();
let params_ptr = match params {
Some(params) => &params.0 as *const _ as *mut _,
None => ptr::null_mut(),
};
let params_ptr = params.into().to_glib_none().0 as *mut _;
unsafe {
let mut buffer = ptr::null_mut();
......
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