Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-09-05 11:45:47 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-09-05 11:45:47 +0300
commit1a401864856022be9103253e7374bde51aa1a226 (patch)
treefb2a4646bb28e4a0e9142ba0c296114ee4014d85 /audio/audiofx
parent3924e2e563320ab2669befe2dd0ab9324f325353 (diff)
Update for GLib ParamSpec builder API changes
Diffstat (limited to 'audio/audiofx')
-rw-r--r--audio/audiofx/src/ebur128level/imp.rs4
-rw-r--r--audio/audiofx/src/hrtfrender/imp.rs13
2 files changed, 7 insertions, 10 deletions
diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs
index 7c889c54..ae9fa35f 100644
--- a/audio/audiofx/src/ebur128level/imp.rs
+++ b/audio/audiofx/src/ebur128level/imp.rs
@@ -144,10 +144,10 @@ impl ObjectImpl for EbuR128Level {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecFlags::builder("mode", Mode::static_type())
+ glib::ParamSpecFlags::builder::<Mode>("mode")
.nick("Mode")
.blurb("Selection of metrics to calculate")
- .default_value(DEFAULT_MODE.bits() as u32)
+ .default_value(DEFAULT_MODE)
.mutable_ready()
.build(),
glib::ParamSpecBoolean::builder("post-messages")
diff --git a/audio/audiofx/src/hrtfrender/imp.rs b/audio/audiofx/src/hrtfrender/imp.rs
index fc949f7e..76b22748 100644
--- a/audio/audiofx/src/hrtfrender/imp.rs
+++ b/audio/audiofx/src/hrtfrender/imp.rs
@@ -404,7 +404,7 @@ impl ObjectImpl for HrtfRender {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecBoxed::builder("hrir-raw", glib::Bytes::static_type())
+ glib::ParamSpecBoxed::builder::<glib::Bytes>("hrir-raw")
.nick("Head Transform Impulse Response")
.blurb("Head Transform Impulse Response raw bytes")
.mutable_ready()
@@ -430,13 +430,10 @@ impl ObjectImpl for HrtfRender {
.build(),
gst::ParamSpecArray::builder("spatial-objects")
.element_spec(
- &glib::ParamSpecBoxed::builder(
- "spatial-object",
- gst::Structure::static_type(),
- )
- .nick("Spatial Object")
- .blurb("Spatial Object Metadata")
- .build(),
+ &glib::ParamSpecBoxed::builder::<gst::Structure>("spatial-object")
+ .nick("Spatial Object")
+ .blurb("Spatial Object Metadata")
+ .build(),
)
.nick("Spatial Objects")
.blurb("Spatial object Metadata to apply on input channels")