fallbackswitch: Update bundled aggregator bindings with glib subclass API cleanups

This commit is contained in:
Sebastian Dröge 2021-03-08 12:43:05 +02:00
parent dc0c5f7611
commit 9721b3e762
2 changed files with 4 additions and 4 deletions

View file

@ -618,8 +618,8 @@ unsafe impl<T: AggregatorImpl> IsSubclassable<T> for Aggregator
where where
<T as ObjectSubclass>::Instance: PanicPoison, <T as ObjectSubclass>::Instance: PanicPoison,
{ {
fn override_vfuncs(klass: &mut glib::Class<Self>) { fn class_init(klass: &mut glib::Class<Self>) {
<gst::Element as IsSubclassable<T>>::override_vfuncs(klass); <gst::Element as IsSubclassable<T>>::class_init(klass);
let klass = klass.as_mut(); let klass = klass.as_mut();
klass.flush = Some(aggregator_flush::<T>); klass.flush = Some(aggregator_flush::<T>);
klass.clip = Some(aggregator_clip::<T>); klass.clip = Some(aggregator_clip::<T>);

View file

@ -102,8 +102,8 @@ impl<T: AggregatorPadImpl> AggregatorPadImplExt for T {
} }
} }
unsafe impl<T: AggregatorPadImpl> IsSubclassable<T> for AggregatorPad { unsafe impl<T: AggregatorPadImpl> IsSubclassable<T> for AggregatorPad {
fn override_vfuncs(klass: &mut glib::Class<Self>) { fn class_init(klass: &mut glib::Class<Self>) {
<gst::Pad as IsSubclassable<T>>::override_vfuncs(klass); <gst::Pad as IsSubclassable<T>>::class_init(klass);
let klass = klass.as_mut(); let klass = klass.as_mut();
klass.flush = Some(aggregator_pad_flush::<T>); klass.flush = Some(aggregator_pad_flush::<T>);
klass.skip_buffer = Some(aggregator_pad_skip_buffer::<T>); klass.skip_buffer = Some(aggregator_pad_skip_buffer::<T>);