From b23bb2039ec48ca740546f6d044e3c6b6d49133e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 30 May 2021 20:05:31 +0300 Subject: [PATCH] base: Rename basesink's is_drop_out_of_segment() to drops_out_of_segment() --- gstreamer-base/Gir.toml | 4 ++++ gstreamer-base/src/auto/base_sink.rs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gstreamer-base/Gir.toml b/gstreamer-base/Gir.toml index b37aefd75..825ca7db8 100644 --- a/gstreamer-base/Gir.toml +++ b/gstreamer-base/Gir.toml @@ -145,6 +145,10 @@ manual_traits = ["BaseSinkExtManual"] # Same as the enable-last-sample property ignore = true + [[object.function]] + name = "get_drop_out_of_segment" + rename = "drops_out_of_segment" + [[object]] name = "GstBase.BaseSrc" status = "generate" diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 18fd3cb86..393006509 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -39,7 +39,7 @@ pub trait BaseSinkExt: 'static { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] #[doc(alias = "gst_base_sink_get_drop_out_of_segment")] #[doc(alias = "get_drop_out_of_segment")] - fn is_drop_out_of_segment(&self) -> bool; + fn drops_out_of_segment(&self) -> bool; #[doc(alias = "gst_base_sink_get_last_sample")] #[doc(alias = "get_last_sample")] @@ -232,7 +232,7 @@ impl> BaseSinkExt for O { #[cfg(any(feature = "v1_12", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_12")))] - fn is_drop_out_of_segment(&self) -> bool { + fn drops_out_of_segment(&self) -> bool { unsafe { from_glib(ffi::gst_base_sink_get_drop_out_of_segment( self.as_ref().to_glib_none().0,