Commit 9295137a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Caps::subtract() does not take ownership of its arguments

parent 3f8a087f
......@@ -90,7 +90,7 @@ impl GstRc<CapsRef> {
pub fn subtract(caps: Self, other: Self) -> Self {
skip_assert_initialized!();
unsafe { from_glib_full(ffi::gst_caps_subtract(caps.into_ptr(), other.into_ptr())) }
unsafe { from_glib_full(ffi::gst_caps_subtract(caps.as_mut_ptr(), other.as_mut_ptr())) }
}
pub fn truncate(caps: Self) -> Self {
......
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