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/utils
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 /utils
parente0b577fe1d96779cac8b2bdd365f84c008232246 (diff)
fix-getters-def 0.3.0 pass
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/src/base/subclass/aggregator.rs2
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/imp.rs2
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs4
-rw-r--r--utils/fallbackswitch/src/fallbackswitch/imp.rs10
-rw-r--r--utils/togglerecord/src/togglerecord/imp.rs8
5 files changed, 13 insertions, 13 deletions
diff --git a/utils/fallbackswitch/src/base/subclass/aggregator.rs b/utils/fallbackswitch/src/base/subclass/aggregator.rs
index 499dc8e47..f34e89416 100644
--- a/utils/fallbackswitch/src/base/subclass/aggregator.rs
+++ b/utils/fallbackswitch/src/base/subclass/aggregator.rs
@@ -110,7 +110,7 @@ pub trait AggregatorImpl: AggregatorImplExt + ElementImpl {
self.parent_stop(aggregator)
}
- fn get_next_time(&self, aggregator: &Self::Type) -> gst::ClockTime {
+ fn next_time(&self, aggregator: &Self::Type) -> gst::ClockTime {
self.parent_get_next_time(aggregator)
}
diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs
index db85a4f80..8432a2105 100644
--- a/utils/fallbackswitch/src/fallbacksrc/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs
@@ -439,7 +439,7 @@ impl ObjectImpl for FallbackSrc {
// Called whenever a value of a property is read. It can be called
// at any time from any thread.
#[allow(clippy::blocks_in_if_conditions)]
- 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() {
"enable-audio" => {
let settings = self.settings.lock().unwrap();
diff --git a/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs b/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs
index 6f248aafd..dfe93f5c5 100644
--- a/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs
@@ -142,7 +142,7 @@ impl ObjectImpl for VideoFallbackSource {
}
}
- 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() {
"uri" => {
let settings = self.settings.lock().unwrap();
@@ -235,7 +235,7 @@ impl BinImpl for VideoFallbackSource {
}
impl VideoFallbackSource {
- fn get_file_src_for_uri(
+ fn file_src_for_uri(
&self,
element: &super::VideoFallbackSource,
uri: Option<&str>,
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs
index b2e107a0c..2e6597683 100644
--- a/utils/fallbackswitch/src/fallbackswitch/imp.rs
+++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs
@@ -123,7 +123,7 @@ impl Default for Settings {
}
impl OutputState {
- fn get_health(
+ fn health(
&self,
settings: &Settings,
check_primary_pad: bool,
@@ -360,7 +360,7 @@ impl FallbackSwitch {
Ok(Some((buffer, active_caps, pad_change)))
}
- fn get_backup_buffer(
+ fn backup_buffer(
&self,
state: &mut OutputState,
settings: &Settings,
@@ -477,7 +477,7 @@ impl FallbackSwitch {
}
#[allow(clippy::type_complexity)]
- fn get_next_buffer(
+ fn next_buffer(
&self,
agg: &super::FallbackSwitch,
timeout: bool,
@@ -769,7 +769,7 @@ impl ObjectImpl for FallbackSwitch {
}
}
- 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() {
"timeout" => {
let settings = self.settings.lock().unwrap();
@@ -980,7 +980,7 @@ impl AggregatorImpl for FallbackSwitch {
}
}
- fn get_next_time(&self, agg: &Self::Type) -> gst::ClockTime {
+ fn next_time(&self, agg: &Self::Type) -> gst::ClockTime {
/* At each iteration, we have a preferred pad and a backup pad. If autoswitch is true,
* the sinkpad is always preferred, otherwise it's the active sinkpad as set by the app.
* The backup pad is the other one (may be None if there's no fallback pad yet).
diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs
index 6069de2c3..928fd3b22 100644
--- a/utils/togglerecord/src/togglerecord/imp.rs
+++ b/utils/togglerecord/src/togglerecord/imp.rs
@@ -168,7 +168,7 @@ trait HandleData: Sized {
self.pts()
}
}
- fn get_duration(&self, state: &StreamState) -> gst::ClockTime;
+ fn duration(&self, state: &StreamState) -> gst::ClockTime;
fn is_keyframe(&self) -> bool;
fn can_clip(&self, state: &StreamState) -> bool;
fn clip(
@@ -187,7 +187,7 @@ impl HandleData for (gst::ClockTime, gst::ClockTime) {
self.0
}
- fn get_duration(&self, _state: &StreamState) -> gst::ClockTime {
+ fn duration(&self, _state: &StreamState) -> gst::ClockTime {
self.1
}
@@ -225,7 +225,7 @@ impl HandleData for gst::Buffer {
gst::BufferRef::dts(self)
}
- fn get_duration(&self, state: &StreamState) -> gst::ClockTime {
+ fn duration(&self, state: &StreamState) -> gst::ClockTime {
let duration = gst::BufferRef::duration(self);
if duration.is_some() {
@@ -1743,7 +1743,7 @@ impl ObjectImpl for ToggleRecord {
}
}
- 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() {
"record" => {
let settings = self.settings.lock();