Make sure to override vfuncs of all parent classes correctly

This commit is contained in:
Sebastian Dröge 2018-11-19 11:27:50 +02:00
parent 8b7f0b40ea
commit 66366ce024
7 changed files with 8 additions and 0 deletions

View file

@ -515,6 +515,7 @@ impl ObjectType for Aggregator {
type InstanceStructType = ElementInstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut AggregatorClass) {
ObjectClassExt::override_vfuncs(klass, token);
ElementClassExt::override_vfuncs(klass, token);
AggregatorClassExt::override_vfuncs(klass, token);
}

View file

@ -145,7 +145,9 @@ impl ObjectType for AggregatorPad {
type InstanceStructType = InstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut AggregatorPadClass) {
ObjectClassExt::override_vfuncs(klass, token);
PadClassExt::override_vfuncs(klass, token);
GhostPadClassExt::override_vfuncs(klass, token);
AggregatorPadClassExt::override_vfuncs(klass, token);
}

View file

@ -297,6 +297,7 @@ impl ObjectType for BaseSink {
type InstanceStructType = ElementInstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut BaseSinkClass) {
ObjectClassExt::override_vfuncs(klass, token);
ElementClassExt::override_vfuncs(klass, token);
BaseSinkClassExt::override_vfuncs(klass, token);
}

View file

@ -430,6 +430,7 @@ impl ObjectType for BaseTransform {
type InstanceStructType = ElementInstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut BaseTransformClass) {
ObjectClassExt::override_vfuncs(klass, token);
ElementClassExt::override_vfuncs(klass, token);
BaseTransformClassExt::override_vfuncs(klass, token);
}

View file

@ -151,6 +151,7 @@ impl ObjectType for Bin {
type InstanceStructType = ElementInstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut BinClass) {
ObjectClassExt::override_vfuncs(klass, token);
ElementClassExt::override_vfuncs(klass, token);
BinClassExt::override_vfuncs(klass, token);
}

View file

@ -81,6 +81,7 @@ impl ObjectType for GhostPad {
type InstanceStructType = InstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut GhostPadClass) {
ObjectClassExt::override_vfuncs(klass, token);
PadClassExt::override_vfuncs(klass, token);
GhostPadClassExt::override_vfuncs(klass, token);
}

View file

@ -118,6 +118,7 @@ impl ObjectType for Pad {
type InstanceStructType = InstanceStruct<Self>;
fn class_init(token: &ClassInitToken, klass: &mut PadClass) {
ObjectClassExt::override_vfuncs(klass, token);
PadClassExt::override_vfuncs(klass, token);
}