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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1345>
This commit is contained in:
Sebastian Dröge 2023-11-11 19:21:20 +02:00
parent 30d8a7893b
commit 3ac254d34c
2 changed files with 5 additions and 4 deletions

View file

@ -1761,6 +1761,11 @@ manual_traits = ["PadExtManual"]
# Has a proper getter # Has a proper getter
ignore = true ignore = true
[[object.property]]
name = "caps"
# Same as `current_caps()`
generate = ["notify"]
[[object]] [[object]]
name = "Gst.PadDirection" name = "Gst.PadDirection"
status = "generate" status = "generate"

View file

@ -495,10 +495,6 @@ pub trait PadExt: IsA<Pad> + sealed::Sealed + 'static {
} }
} }
fn caps(&self) -> Option<Caps> {
ObjectExt::property(self.as_ref(), "caps")
}
#[doc(alias = "linked")] #[doc(alias = "linked")]
fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn linked_trampoline< unsafe extern "C" fn linked_trampoline<