From 3ac254d34cf68b25a6fa1ef94c132d96d2e333e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 11 Nov 2023 19:21:20 +0200 Subject: [PATCH] gstreamer: pad: Remove "caps" property getter Only only leave the notify signal connection function. The property getter is the same as `current_caps()`, which is more lightweight. Part-of: --- gstreamer/Gir.toml | 5 +++++ gstreamer/src/auto/pad.rs | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gstreamer/Gir.toml b/gstreamer/Gir.toml index 7dfb1e09a..50963eae1 100644 --- a/gstreamer/Gir.toml +++ b/gstreamer/Gir.toml @@ -1761,6 +1761,11 @@ manual_traits = ["PadExtManual"] # Has a proper getter ignore = true + [[object.property]] + name = "caps" + # Same as `current_caps()` + generate = ["notify"] + [[object]] name = "Gst.PadDirection" status = "generate" diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 2842f330d..40b9f4395 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -495,10 +495,6 @@ pub trait PadExt: IsA + sealed::Sealed + 'static { } } - fn caps(&self) -> Option { - ObjectExt::property(self.as_ref(), "caps") - } - #[doc(alias = "linked")] fn connect_linked(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn linked_trampoline<