Fix harness compilation with v1_16 feature

This commit is contained in:
Sebastian Dröge 2018-11-02 13:58:51 +02:00
parent 7a0bb763a6
commit 1937294faf

View file

@ -109,8 +109,8 @@ impl Harness {
params: P,
) {
let params = params.into();
let params = params.map(|p| p.as_ptr()).unwrap_or(ptr::null_mut());
unsafe {
let params = params.map(|p| p.as_ptr()).unwrap_or(ptr::null_mut());
ffi::gst_harness_add_propose_allocation_meta(self.0.as_ptr(), api.to_glib(), params);
}
}