mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-28 19:10:34 +00:00
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,
|
||||
params: P,
|
||||
) -> Result<::Buffer, ::FlowError> {
|
||||
let params = params.into();
|
||||
let params_ptr = match params {
|
||||
Some(params) => ¶ms.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();
|
||||
|
|
Loading…
Reference in a new issue