Commit a8215ad7 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Use new GLib API for generically implementing GObject interfaces

parent 1f8465af
......@@ -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>) {
......
......@@ -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>) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment