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/video
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-01-21 19:13:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-01-21 19:13:48 +0300
commit458b2386ed5c3cdfde45b0eab127220f0431bf0d (patch)
treead1ef0925c028d0239f0aeafd065797fd87e48ff /video
parent7cfd570c15b9742f7e07e92f97ffc2c623b6791f (diff)
Update for glib API changes
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/transcriberbin/imp.rs4
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs2
-rw-r--r--video/closedcaption/src/tttojson/imp.rs2
-rw-r--r--video/png/src/pngenc/imp.rs4
-rw-r--r--video/rav1e/src/rav1enc/imp.rs2
-rw-r--r--video/videofx/src/videocompare/imp.rs2
6 files changed, 8 insertions, 8 deletions
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs
index 059af53d2..5a94b2874 100644
--- a/video/closedcaption/src/transcriberbin/imp.rs
+++ b/video/closedcaption/src/transcriberbin/imp.rs
@@ -601,7 +601,7 @@ impl ObjectImpl for TranscriberBin {
.default_value(DEFAULT_ACCUMULATE.mseconds() as u32)
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE)
+ glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
.nick("Mode")
.blurb("Which closed caption mode to operate in")
.mutable_playing()
@@ -616,7 +616,7 @@ impl ObjectImpl for TranscriberBin {
.blurb("The transcriber element to use")
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder::<CaptionSource>("caption-source", DEFAULT_CAPTION_SOURCE)
+ glib::ParamSpecEnum::builder_with_default("caption-source", DEFAULT_CAPTION_SOURCE)
.nick("Caption source")
.blurb("Caption source to use. \
If \"Transcription\" or \"Inband\" is selected, the caption meta \
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index e62e85c57..3cc2a6e65 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -1001,7 +1001,7 @@ impl ObjectImpl for TtToCea608 {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE)
+ glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
.nick("Mode")
.blurb("Which mode to operate in")
.mutable_playing()
diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs
index d590060b0..688213ea9 100644
--- a/video/closedcaption/src/tttojson/imp.rs
+++ b/video/closedcaption/src/tttojson/imp.rs
@@ -223,7 +223,7 @@ impl ObjectImpl for TtToJson {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE)
+ glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
.nick("Mode")
.blurb("Which mode to operate in")
.mutable_ready()
diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs
index 8d7b3259c..fc022515e 100644
--- a/video/png/src/pngenc/imp.rs
+++ b/video/png/src/pngenc/imp.rs
@@ -67,7 +67,7 @@ impl ObjectImpl for PngEncoder {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder::<CompressionLevel>(
+ glib::ParamSpecEnum::builder_with_default(
"compression-level",
DEFAULT_COMPRESSION_LEVEL,
)
@@ -75,7 +75,7 @@ impl ObjectImpl for PngEncoder {
.blurb("Selects the compression algorithm to use")
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder::<FilterType>("filter", DEFAULT_FILTER_TYPE)
+ glib::ParamSpecEnum::builder_with_default("filter", DEFAULT_FILTER_TYPE)
.nick("Filter")
.blurb("Selects the filter type to applied")
.mutable_ready()
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index 08701ee81..14f7148bf 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -321,7 +321,7 @@ impl ObjectImpl for Rav1Enc {
.default_value(DEFAULT_RDO_LOOKAHEAD_FRAMES)
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder::<Tune>("tune", DEFAULT_TUNE)
+ glib::ParamSpecEnum::builder_with_default("tune", DEFAULT_TUNE)
.nick("Tune")
.blurb("Tune")
.mutable_ready()
diff --git a/video/videofx/src/videocompare/imp.rs b/video/videofx/src/videocompare/imp.rs
index 508d6f3b5..4480ee314 100644
--- a/video/videofx/src/videocompare/imp.rs
+++ b/video/videofx/src/videocompare/imp.rs
@@ -75,7 +75,7 @@ impl ObjectImpl for VideoCompare {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder::<HashAlgorithm>("hash-algo", DEFAULT_HASH_ALGO)
+ glib::ParamSpecEnum::builder_with_default("hash-algo", DEFAULT_HASH_ALGO)
.nick("Hashing Algorithm")
.blurb("Which hashing algorithm to use for image comparisons")
.mutable_ready()