diff --git a/gstreamer-base/src/aggregator.rs b/gstreamer-base/src/aggregator.rs index 9204713a5..88727004b 100644 --- a/gstreamer-base/src/aggregator.rs +++ b/gstreamer-base/src/aggregator.rs @@ -71,9 +71,8 @@ pub trait AggregatorExtManual: 'static { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_samples_selected< - P, F: Fn( - &P, + &Self, &gst::Segment, Option, Option, @@ -84,9 +83,7 @@ pub trait AggregatorExtManual: 'static { >( &self, f: F, - ) -> SignalHandlerId - where - P: IsA; + ) -> SignalHandlerId; } impl> AggregatorExtManual for O { @@ -208,9 +205,8 @@ impl> AggregatorExtManual for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn connect_samples_selected< - P, F: Fn( - &P, + &Self, &gst::Segment, Option, Option, @@ -221,10 +217,7 @@ impl> AggregatorExtManual for O { >( &self, f: F, - ) -> SignalHandlerId - where - P: IsA, - { + ) -> SignalHandlerId { unsafe extern "C" fn samples_selected_trampoline< P, F: Fn( @@ -268,7 +261,7 @@ impl> AggregatorExtManual for O { self.as_ptr() as *mut _, b"samples-selected\0".as_ptr() as *const _, Some(transmute::<_, unsafe extern "C" fn()>( - samples_selected_trampoline:: as *const (), + samples_selected_trampoline:: as *const (), )), Box_::into_raw(f), )