From 9295137a10ca2eb19e93dfadab24639a452f1ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 19 Jul 2018 18:33:32 +0300 Subject: [PATCH] Caps::subtract() does not take ownership of its arguments --- gstreamer/src/caps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index 7c6c81d9a..964f91c9c 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -90,7 +90,7 @@ impl GstRc { 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 {