mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-17 05:15:14 +00:00
Use new GLib API for generically implementing GObject interfaces
This commit is contained in:
parent
1f8465af66
commit
a8215ad711
2 changed files with 4 additions and 4 deletions
|
@ -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>) {
|
||||
|
|
Loading…
Reference in a new issue