mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
Caps::subtract() does not take ownership of its arguments
This commit is contained in:
parent
3f8a087fd4
commit
9295137a10
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ impl GstRc<CapsRef> {
|
||||||
|
|
||||||
pub fn subtract(caps: Self, other: Self) -> Self {
|
pub fn subtract(caps: Self, other: Self) -> Self {
|
||||||
skip_assert_initialized!();
|
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 {
|
pub fn truncate(caps: Self) -> Self {
|
||||||
|
|
Loading…
Reference in a new issue