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

This commit is contained in:
Sebastian Dröge 2018-07-19 18:33:32 +03:00
parent 3f8a087fd4
commit 9295137a10

View file

@ -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 {