diff --git a/gstreamer/src/subclass/buffer_pool.rs b/gstreamer/src/subclass/buffer_pool.rs index 9654ff5c9..3bfd3f937 100644 --- a/gstreamer/src/subclass/buffer_pool.rs +++ b/gstreamer/src/subclass/buffer_pool.rs @@ -597,7 +597,7 @@ mod tests { data: *mut libc::c_void, _mini_object: *mut ffi::GstMiniObject, ) { - let finalized = &*(data as *const AtomicBool); + let finalized = Arc::from_raw(data as *const AtomicBool); finalized.store(true, Ordering::SeqCst); } }