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:
authorFrançois Laignel <fengalin@free.fr>2021-04-12 19:12:05 +0300
committerFrançois Laignel <fengalin@free.fr>2021-04-13 18:24:20 +0300
commit7d17f88941323013b7e2413aadaf53832a085195 (patch)
tree65a823b82489af25875062b96e37ef229506455e /tutorial/src
parent06accc8d98cc2876bcacfc6f9e097af690b4e64f (diff)
post fix-getters manual updates
Diffstat (limited to 'tutorial/src')
-rw-r--r--tutorial/src/progressbin/imp.rs2
-rw-r--r--tutorial/src/rgb2gray/imp.rs4
-rw-r--r--tutorial/src/sinesrc/imp.rs10
3 files changed, 8 insertions, 8 deletions
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs
index 8139858e3..41f390cec 100644
--- a/tutorial/src/progressbin/imp.rs
+++ b/tutorial/src/progressbin/imp.rs
@@ -82,7 +82,7 @@ impl ObjectImpl for ProgressBin {
// Metadata for the element's properties
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::enum_(
+ vec![glib::ParamSpec::new_enum(
"output",
"Output",
"Defines the output type of the progressbin",
diff --git a/tutorial/src/rgb2gray/imp.rs b/tutorial/src/rgb2gray/imp.rs
index d2dd7a578..5c31dac03 100644
--- a/tutorial/src/rgb2gray/imp.rs
+++ b/tutorial/src/rgb2gray/imp.rs
@@ -103,14 +103,14 @@ impl ObjectImpl for Rgb2Gray {
// Metadata for the properties
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::boolean(
+ glib::ParamSpec::new_boolean(
"invert",
"Invert",
"Invert grayscale output",
DEFAULT_INVERT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::uint(
+ glib::ParamSpec::new_uint(
"shift",
"Shift",
"Shift grayscale output (wrapping around)",
diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs
index 6d61c7f76..8e3d64a58 100644
--- a/tutorial/src/sinesrc/imp.rs
+++ b/tutorial/src/sinesrc/imp.rs
@@ -166,7 +166,7 @@ impl ObjectImpl for SineSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::uint(
+ glib::ParamSpec::new_uint(
"samples-per-buffer",
"Samples Per Buffer",
"Number of samples per output buffer",
@@ -175,7 +175,7 @@ impl ObjectImpl for SineSrc {
DEFAULT_SAMPLES_PER_BUFFER,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::uint(
+ glib::ParamSpec::new_uint(
"freq",
"Frequency",
"Frequency",
@@ -184,7 +184,7 @@ impl ObjectImpl for SineSrc {
DEFAULT_FREQ,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::double(
+ glib::ParamSpec::new_double(
"volume",
"Volume",
"Output volume",
@@ -193,14 +193,14 @@ impl ObjectImpl for SineSrc {
DEFAULT_VOLUME,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::boolean(
+ glib::ParamSpec::new_boolean(
"mute",
"Mute",
"Mute",
DEFAULT_MUTE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::boolean(
+ glib::ParamSpec::new_boolean(
"is-live",
"Is Live",
"(Pseudo) live output",