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:
Diffstat (limited to 'tutorial/src/sinesrc/imp.rs')
-rw-r--r--tutorial/src/sinesrc/imp.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs
index 4ada4ddd0..d26b83728 100644
--- a/tutorial/src/sinesrc/imp.rs
+++ b/tutorial/src/sinesrc/imp.rs
@@ -167,7 +167,7 @@ impl ObjectImpl for SineSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"samples-per-buffer",
"Samples Per Buffer",
"Number of samples per output buffer",
@@ -176,7 +176,7 @@ impl ObjectImpl for SineSrc {
DEFAULT_SAMPLES_PER_BUFFER,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"freq",
"Frequency",
"Frequency",
@@ -185,7 +185,7 @@ impl ObjectImpl for SineSrc {
DEFAULT_FREQ,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"volume",
"Volume",
"Output volume",
@@ -194,14 +194,14 @@ impl ObjectImpl for SineSrc {
DEFAULT_VOLUME,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"mute",
"Mute",
"Mute",
DEFAULT_MUTE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"is-live",
"Is Live",
"(Pseudo) live output",