diff options
author | François Laignel <fengalin@free.fr> | 2021-04-20 15:57:40 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-20 19:19:58 +0300 |
commit | 27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (patch) | |
tree | 8837a6ede376d71ede06dfa553250b19de618b16 /generic | |
parent | e0b577fe1d96779cac8b2bdd365f84c008232246 (diff) |
fix-getters-def 0.3.0 pass
Diffstat (limited to 'generic')
-rw-r--r-- | generic/file/src/filesink/imp.rs | 6 | ||||
-rw-r--r-- | generic/file/src/filesrc/imp.rs | 8 | ||||
-rw-r--r-- | generic/sodium/src/decrypter/imp.rs | 6 | ||||
-rw-r--r-- | generic/sodium/src/encrypter/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/appsrc/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/inputselector/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/jitterbuffer/imp.rs | 4 | ||||
-rw-r--r-- | generic/threadshare/src/jitterbuffer/jitterbuffer.rs | 4 | ||||
-rw-r--r-- | generic/threadshare/src/proxy/imp.rs | 4 | ||||
-rw-r--r-- | generic/threadshare/src/queue/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/tcpclientsrc/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/udpsink/imp.rs | 2 | ||||
-rw-r--r-- | generic/threadshare/src/udpsrc/imp.rs | 2 |
13 files changed, 23 insertions, 23 deletions
diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs index 6627582dd..e754ad0db 100644 --- a/generic/file/src/filesink/imp.rs +++ b/generic/file/src/filesink/imp.rs @@ -153,7 +153,7 @@ impl ObjectImpl for FileSink { }; } - 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(); @@ -292,11 +292,11 @@ impl BaseSinkImpl for FileSink { impl URIHandlerImpl for FileSink { const URI_TYPE: gst::URIType = gst::URIType::Sink; - fn get_protocols() -> &'static [&'static str] { + fn protocols() -> &'static [&'static str] { &["file"] } - fn get_uri(&self, _element: &Self::Type) -> Option<String> { + fn uri(&self, _element: &Self::Type) -> Option<String> { let settings = self.settings.lock().unwrap(); // Conversion to Url already checked while building the `FileLocation` diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs index 690cdf1f9..26049003f 100644 --- a/generic/file/src/filesrc/imp.rs +++ b/generic/file/src/filesrc/imp.rs @@ -167,7 +167,7 @@ impl ObjectImpl for FileSrc { }; } - 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(); @@ -226,7 +226,7 @@ impl BaseSrcImpl for FileSrc { true } - fn get_size(&self, _src: &Self::Type) -> Option<u64> { + fn size(&self, _src: &Self::Type) -> Option<u64> { let state = self.state.lock().unwrap(); if let State::Started { ref file, .. } = *state { file.metadata().ok().map(|m| m.len()) @@ -345,11 +345,11 @@ impl BaseSrcImpl for FileSrc { impl URIHandlerImpl for FileSrc { const URI_TYPE: gst::URIType = gst::URIType::Src; - fn get_protocols() -> &'static [&'static str] { + fn protocols() -> &'static [&'static str] { &["file"] } - fn get_uri(&self, _element: &Self::Type) -> Option<String> { + fn uri(&self, _element: &Self::Type) -> Option<String> { let settings = self.settings.lock().unwrap(); // Conversion to Url already checked while building the `FileLocation` diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index 7ab81a38b..c78e64f75 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -141,7 +141,7 @@ impl State { } // Retrieve the requested buffer out of the adapter. - fn get_requested_buffer( + fn requested_buffer( &mut self, pad: &gst::Pad, buffer: Option<&mut gst::BufferRef>, @@ -496,7 +496,7 @@ impl Decrypter { }) } - fn get_range( + fn range( &self, pad: &gst::Pad, element: &super::Decrypter, @@ -651,7 +651,7 @@ impl ObjectImpl for Decrypter { } } - 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() { "receiver-key" => { let props = self.props.lock().unwrap(); diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs index c84f104fa..b8d3ff37e 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -456,7 +456,7 @@ impl ObjectImpl for Encrypter { } } - 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() { "receiver-key" => { let props = self.props.lock().unwrap(); diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index f3952178a..28eaa0d26 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -646,7 +646,7 @@ impl ObjectImpl for AppSrc { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "context" => settings.context.to_value(), diff --git a/generic/threadshare/src/inputselector/imp.rs b/generic/threadshare/src/inputselector/imp.rs index 1fcbfbed1..3d4fb8e39 100644 --- a/generic/threadshare/src/inputselector/imp.rs +++ b/generic/threadshare/src/inputselector/imp.rs @@ -493,7 +493,7 @@ impl ObjectImpl for InputSelector { } } - 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() { "context" => { let settings = self.settings.lock().unwrap(); diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index 7550d6b7c..af2349535 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -847,7 +847,7 @@ impl SrcHandler { jb.src_pad.push(buffer).await } - fn get_next_wakeup( + fn next_wakeup( &self, element: &super::JitterBuffer, state: &State, @@ -1495,7 +1495,7 @@ impl ObjectImpl for JitterBuffer { } } - 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() { "latency" => { let settings = self.settings.lock().unwrap(); diff --git a/generic/threadshare/src/jitterbuffer/jitterbuffer.rs b/generic/threadshare/src/jitterbuffer/jitterbuffer.rs index 93c70fddb..efb2fbe4c 100644 --- a/generic/threadshare/src/jitterbuffer/jitterbuffer.rs +++ b/generic/threadshare/src/jitterbuffer/jitterbuffer.rs @@ -192,12 +192,12 @@ impl RTPPacketRateCtx { unsafe { ffi::gst_rtp_packet_rate_ctx_update(&mut *self.0, seqnum, ts) } } - pub fn get_max_dropout(&mut self, time_ms: i32) -> u32 { + pub fn max_dropout(&mut self, time_ms: i32) -> u32 { unsafe { ffi::gst_rtp_packet_rate_ctx_get_max_dropout(&mut *self.0, time_ms) } } #[allow(dead_code)] - pub fn get_max_disorder(&mut self, time_ms: i32) -> u32 { + pub fn max_disorder(&mut self, time_ms: i32) -> u32 { unsafe { ffi::gst_rtp_packet_rate_ctx_get_max_disorder(&mut *self.0, time_ms) } } } diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs index 32a159cbd..8e182303b 100644 --- a/generic/threadshare/src/proxy/imp.rs +++ b/generic/threadshare/src/proxy/imp.rs @@ -621,7 +621,7 @@ impl ObjectImpl for ProxySink { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "proxy-context" => settings.proxy_context.to_value(), @@ -1223,7 +1223,7 @@ impl ObjectImpl for ProxySrc { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "max-size-buffers" => settings.max_size_buffers.to_value(), diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index 86157d58c..c8dd6fc0c 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -798,7 +798,7 @@ impl ObjectImpl for Queue { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "max-size-buffers" => settings.max_size_buffers.to_value(), diff --git a/generic/threadshare/src/tcpclientsrc/imp.rs b/generic/threadshare/src/tcpclientsrc/imp.rs index 3bff5fe58..8e3a7dbac 100644 --- a/generic/threadshare/src/tcpclientsrc/imp.rs +++ b/generic/threadshare/src/tcpclientsrc/imp.rs @@ -657,7 +657,7 @@ impl ObjectImpl for TcpClientSrc { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "host" => settings.host.to_value(), diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index 43c06b11e..df549802c 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -1286,7 +1286,7 @@ impl ObjectImpl for UdpSink { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "sync" => settings.sync.to_value(), diff --git a/generic/threadshare/src/udpsrc/imp.rs b/generic/threadshare/src/udpsrc/imp.rs index aa240d43b..0d2b126c6 100644 --- a/generic/threadshare/src/udpsrc/imp.rs +++ b/generic/threadshare/src/udpsrc/imp.rs @@ -847,7 +847,7 @@ impl ObjectImpl for UdpSrc { } } - 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 { let settings = self.settings.lock().unwrap(); match pspec.name() { "address" => settings.address.to_value(), |