Use new GLib API for generically implementing GObject interfaces

This commit is contained in:
Sebastian Dröge 2018-12-19 01:18:52 +02:00
parent 1f8465af66
commit a8215ad711
2 changed files with 4 additions and 4 deletions

View file

@ -126,8 +126,8 @@ impl ObjectSubclass for FileSink {
}
}
fn type_init(type_: &subclass::InitializingType<Self>) {
gst::subclass::uri_handler::register(type_);
fn type_init(type_: &mut subclass::InitializingType<Self>) {
type_.add_interface::<gst::URIHandler>();
}
fn class_init(klass: &mut subclass::simple::ClassStruct<Self>) {

View file

@ -139,8 +139,8 @@ impl ObjectSubclass for FileSrc {
}
}
fn type_init(type_: &subclass::InitializingType<Self>) {
gst::subclass::uri_handler::register(type_);
fn type_init(type_: &mut subclass::InitializingType<Self>) {
type_.add_interface::<gst::URIHandler>();
}
fn class_init(klass: &mut subclass::simple::ClassStruct<Self>) {