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
path: root/net
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2021-04-20 15:57:40 +0300
committerFrançois Laignel <fengalin@free.fr>2021-04-20 19:19:58 +0300
commit27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (patch)
tree8837a6ede376d71ede06dfa553250b19de618b16 /net
parente0b577fe1d96779cac8b2bdd365f84c008232246 (diff)
fix-getters-def 0.3.0 pass
Diffstat (limited to 'net')
-rw-r--r--net/reqwest/src/reqwesthttpsrc/imp.rs8
-rw-r--r--net/rusoto/src/aws_transcriber/imp.rs2
-rw-r--r--net/rusoto/src/s3sink/imp.rs2
-rw-r--r--net/rusoto/src/s3src/imp.rs8
4 files changed, 10 insertions, 10 deletions
diff --git a/net/reqwest/src/reqwesthttpsrc/imp.rs b/net/reqwest/src/reqwesthttpsrc/imp.rs
index bd9869251..6bb40c8ef 100644
--- a/net/reqwest/src/reqwesthttpsrc/imp.rs
+++ b/net/reqwest/src/reqwesthttpsrc/imp.rs
@@ -739,7 +739,7 @@ impl ObjectImpl for ReqwestHttpSrc {
};
}
- fn get_property(&self, obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
+ fn property(&self, obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
match pspec.name() {
"location" => {
let settings = self.settings.lock().unwrap();
@@ -860,7 +860,7 @@ impl BaseSrcImpl for ReqwestHttpSrc {
}
}
- fn get_size(&self, _src: &Self::Type) -> Option<u64> {
+ fn size(&self, _src: &Self::Type) -> Option<u64> {
match *self.state.lock().unwrap() {
State::Started { size, .. } => size,
_ => None,
@@ -1096,11 +1096,11 @@ impl PushSrcImpl for ReqwestHttpSrc {
impl URIHandlerImpl for ReqwestHttpSrc {
const URI_TYPE: gst::URIType = gst::URIType::Src;
- fn get_protocols() -> &'static [&'static str] {
+ fn protocols() -> &'static [&'static str] {
&["http", "https"]
}
- fn get_uri(&self, _element: &Self::Type) -> Option<String> {
+ fn uri(&self, _element: &Self::Type) -> Option<String> {
let settings = self.settings.lock().unwrap();
settings.location.as_ref().map(Url::to_string)
diff --git a/net/rusoto/src/aws_transcriber/imp.rs b/net/rusoto/src/aws_transcriber/imp.rs
index c777d8c99..a7d7fba82 100644
--- a/net/rusoto/src/aws_transcriber/imp.rs
+++ b/net/rusoto/src/aws_transcriber/imp.rs
@@ -1091,7 +1091,7 @@ impl ObjectImpl for Transcriber {
}
}
- fn get_property(&self, _obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
+ fn property(&self, _obj: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
match pspec.name() {
"language-code" => {
let settings = self.settings.lock().unwrap();
diff --git a/net/rusoto/src/s3sink/imp.rs b/net/rusoto/src/s3sink/imp.rs
index 44e5d7f4e..42b6f952d 100644
--- a/net/rusoto/src/s3sink/imp.rs
+++ b/net/rusoto/src/s3sink/imp.rs
@@ -420,7 +420,7 @@ impl ObjectImpl for S3Sink {
}
}
- fn get_property(&self, _: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
+ fn property(&self, _: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
let settings = self.settings.lock().unwrap();
match pspec.name() {
diff --git a/net/rusoto/src/s3src/imp.rs b/net/rusoto/src/s3src/imp.rs
index e7bb2ad71..07cb4ab05 100644
--- a/net/rusoto/src/s3src/imp.rs
+++ b/net/rusoto/src/s3src/imp.rs
@@ -240,7 +240,7 @@ impl ObjectImpl for S3Src {
}
}
- fn get_property(&self, _: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
+ fn property(&self, _: &Self::Type, _id: usize, pspec: &glib::ParamSpec) -> glib::Value {
match pspec.name() {
"uri" => {
let url = match *self.url.lock().unwrap() {
@@ -298,11 +298,11 @@ impl ElementImpl for S3Src {
impl URIHandlerImpl for S3Src {
const URI_TYPE: gst::URIType = gst::URIType::Src;
- fn get_protocols() -> &'static [&'static str] {
+ fn protocols() -> &'static [&'static str] {
&["s3"]
}
- fn get_uri(&self, _: &Self::Type) -> Option<String> {
+ fn uri(&self, _: &Self::Type) -> Option<String> {
self.url.lock().unwrap().as_ref().map(|s| s.to_string())
}
@@ -316,7 +316,7 @@ impl BaseSrcImpl for S3Src {
true
}
- fn get_size(&self, _: &Self::Type) -> Option<u64> {
+ fn size(&self, _: &Self::Type) -> Option<u64> {
match *self.state.lock().unwrap() {
StreamingState::Stopped => None,
StreamingState::Started { size, .. } => Some(size),