Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-12-19 02:18:52 +0300
committerSebastian Dröge <sebastian@centricular.com>2018-12-19 14:21:59 +0300
commita8215ad711f128165c965adadba277652faf892d (patch)
tree8c1377225e766dbc1c7e83781a5c697df0ee1b46
parent1f8465af6604a5ac4c7abdacf0e49459f63d25e4 (diff)
Use new GLib API for generically implementing GObject interfaces
-rw-r--r--gst-plugin-file/src/filesink.rs4
-rw-r--r--gst-plugin-file/src/filesrc.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/gst-plugin-file/src/filesink.rs b/gst-plugin-file/src/filesink.rs
index 866b53915..d6d7df8df 100644
--- a/gst-plugin-file/src/filesink.rs
+++ b/gst-plugin-file/src/filesink.rs
@@ -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>) {
diff --git a/gst-plugin-file/src/filesrc.rs b/gst-plugin-file/src/filesrc.rs
index cc63affda..bde3c77ac 100644
--- a/gst-plugin-file/src/filesrc.rs
+++ b/gst-plugin-file/src/filesrc.rs
@@ -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>) {