diff --git a/gstreamer-audio/Gir.toml b/gstreamer-audio/Gir.toml index 0231343b5..292ae0b10 100644 --- a/gstreamer-audio/Gir.toml +++ b/gstreamer-audio/Gir.toml @@ -89,6 +89,11 @@ status = "generate" # fraction manual = true + [[object.property]] + name = "ignore-inactive-pads" + # getter/setter exists in base class + ignore = true + [[object]] name = "GstAudio.AudioBaseSink" status = "generate" diff --git a/gstreamer-audio/src/auto/audio_aggregator.rs b/gstreamer-audio/src/auto/audio_aggregator.rs index f0197843a..1bed38ca3 100644 --- a/gstreamer-audio/src/auto/audio_aggregator.rs +++ b/gstreamer-audio/src/auto/audio_aggregator.rs @@ -42,16 +42,6 @@ pub trait AudioAggregatorExt: 'static { #[doc(alias = "discont-wait")] fn set_discont_wait(&self, discont_wait: u64); - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - #[doc(alias = "ignore-inactive-pads")] - fn ignores_inactive_pads(&self) -> bool; - - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - #[doc(alias = "ignore-inactive-pads")] - fn set_ignore_inactive_pads(&self, ignore_inactive_pads: bool); - #[doc(alias = "output-buffer-duration")] fn output_buffer_duration(&self) -> u64; @@ -70,14 +60,6 @@ pub trait AudioAggregatorExt: 'static { f: F, ) -> SignalHandlerId; - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - #[doc(alias = "ignore-inactive-pads")] - fn connect_ignore_inactive_pads_notify( - &self, - f: F, - ) -> SignalHandlerId; - #[doc(alias = "output-buffer-duration")] fn connect_output_buffer_duration_notify( &self, @@ -102,18 +84,6 @@ impl> AudioAggregatorExt for O { glib::ObjectExt::set_property(self.as_ref(), "discont-wait", &discont_wait) } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - fn ignores_inactive_pads(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "ignore-inactive-pads") - } - - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - fn set_ignore_inactive_pads(&self, ignore_inactive_pads: bool) { - glib::ObjectExt::set_property(self.as_ref(), "ignore-inactive-pads", &ignore_inactive_pads) - } - fn output_buffer_duration(&self) -> u64 { glib::ObjectExt::property(self.as_ref(), "output-buffer-duration") } @@ -182,36 +152,6 @@ impl> AudioAggregatorExt for O { } } - #[cfg(any(feature = "v1_20", feature = "dox"))] - #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] - fn connect_ignore_inactive_pads_notify( - &self, - f: F, - ) -> SignalHandlerId { - unsafe extern "C" fn notify_ignore_inactive_pads_trampoline< - P: IsA, - F: Fn(&P) + Send + Sync + 'static, - >( - this: *mut ffi::GstAudioAggregator, - _param_spec: glib::ffi::gpointer, - f: glib::ffi::gpointer, - ) { - let f: &F = &*(f as *const F); - f(AudioAggregator::from_glib_borrow(this).unsafe_cast_ref()) - } - unsafe { - let f: Box_ = Box_::new(f); - connect_raw( - self.as_ptr() as *mut _, - b"notify::ignore-inactive-pads\0".as_ptr() as *const _, - Some(transmute::<_, unsafe extern "C" fn()>( - notify_ignore_inactive_pads_trampoline:: as *const (), - )), - Box_::into_raw(f), - ) - } - } - fn connect_output_buffer_duration_notify( &self, f: F,