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
path: root/video
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 /video
parent3924e2e563320ab2669befe2dd0ab9324f325353 (diff)
Update for GLib ParamSpec builder API changes
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/mcc_enc/imp.rs2
-rw-r--r--video/closedcaption/src/transcriberbin/imp.rs10
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs3
-rw-r--r--video/closedcaption/src/tttojson/imp.rs3
-rw-r--r--video/gtk4/src/sink/imp.rs2
-rw-r--r--video/rav1e/src/rav1enc/imp.rs3
-rw-r--r--video/rspng/src/pngenc/imp.rs17
7 files changed, 18 insertions, 22 deletions
diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs
index ff766b09..a401450e 100644
--- a/video/closedcaption/src/mcc_enc/imp.rs
+++ b/video/closedcaption/src/mcc_enc/imp.rs
@@ -481,7 +481,7 @@ impl ObjectImpl for MccEnc {
.blurb("UUID for the output file")
.mutable_ready()
.build(),
- glib::ParamSpecBoxed::builder("creation-date", glib::DateTime::static_type())
+ glib::ParamSpecBoxed::builder::<glib::DateTime>("creation-date")
.nick("Creation Date")
.blurb("Creation date for the output file")
.mutable_ready()
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs
index 671a6baa..fa4c275f 100644
--- a/video/closedcaption/src/transcriberbin/imp.rs
+++ b/video/closedcaption/src/transcriberbin/imp.rs
@@ -616,28 +616,26 @@ impl ObjectImpl for TranscriberBin {
.default_value(DEFAULT_ACCUMULATE.mseconds() as u32)
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder("mode", Cea608Mode::static_type())
+ glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE)
.nick("Mode")
.blurb("Which closed caption mode to operate in")
- .default_value(DEFAULT_MODE as i32)
.mutable_playing()
.build(),
- glib::ParamSpecBoxed::builder("cc-caps", gst::Caps::static_type())
+ glib::ParamSpecBoxed::builder::<gst::Caps>("cc-caps")
.nick("Closed Caption caps")
.blurb("The expected format of the closed captions")
.mutable_ready()
.build(),
- glib::ParamSpecObject::builder("transcriber", gst::Element::static_type())
+ glib::ParamSpecObject::builder::<gst::Element>("transcriber")
.nick("Transcriber")
.blurb("The transcriber element to use")
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder("caption-source", CaptionSource::static_type())
+ glib::ParamSpecEnum::builder::<CaptionSource>("caption-source", DEFAULT_CAPTION_SOURCE)
.nick("Caption source")
.blurb("Caption source to use. \
If \"Transcription\" or \"Inband\" is selected, the caption meta \
of the other source will be dropped by transcriberbin")
- .default_value(DEFAULT_CAPTION_SOURCE as i32)
.mutable_playing()
.build(),
]
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index 0846d041..c20ff2fb 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -1061,10 +1061,9 @@ impl ObjectImpl for TtToCea608 {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder("mode", Cea608Mode::static_type())
+ glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE)
.nick("Mode")
.blurb("Which mode to operate in")
- .default_value(DEFAULT_MODE as i32)
.mutable_playing()
.build(),
glib::ParamSpecInt::builder("origin-row")
diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs
index ec0d7eff..4efc494f 100644
--- a/video/closedcaption/src/tttojson/imp.rs
+++ b/video/closedcaption/src/tttojson/imp.rs
@@ -224,10 +224,9 @@ impl ObjectImpl for TtToJson {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder("mode", Cea608Mode::static_type())
+ glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE)
.nick("Mode")
.blurb("Which mode to operate in")
- .default_value(DEFAULT_MODE as i32)
.mutable_ready()
.build(),
]
diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs
index c36faa26..054c3e72 100644
--- a/video/gtk4/src/sink/imp.rs
+++ b/video/gtk4/src/sink/imp.rs
@@ -69,7 +69,7 @@ impl ObjectImpl for PaintableSink {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecObject::builder("paintable", gtk::gdk::Paintable::static_type())
+ glib::ParamSpecObject::builder::<gtk::gdk::Paintable>("paintable")
.nick("Paintable")
.blurb("The Paintable the sink renders to")
.read_only()
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index c19b0235..ce459dcc 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -319,10 +319,9 @@ impl ObjectImpl for Rav1Enc {
.default_value(DEFAULT_RDO_LOOKAHEAD_FRAMES)
.mutable_ready()
.build(),
- glib::ParamSpecEnum::builder("tune", Tune::static_type())
+ glib::ParamSpecEnum::builder::<Tune>("tune", DEFAULT_TUNE)
.nick("Tune")
.blurb("Tune")
- .default_value(DEFAULT_TUNE as i32)
.mutable_ready()
.build(),
glib::ParamSpecInt::builder("reservoir-frame-delay")
diff --git a/video/rspng/src/pngenc/imp.rs b/video/rspng/src/pngenc/imp.rs
index 9fca75ad..04b82ec3 100644
--- a/video/rspng/src/pngenc/imp.rs
+++ b/video/rspng/src/pngenc/imp.rs
@@ -176,16 +176,17 @@ impl ObjectImpl for PngEncoder {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder("compression-level", CompressionLevel::static_type())
- .nick("Compression level")
- .blurb("Selects the compression algorithm to use")
- .default_value(DEFAULT_COMPRESSION_LEVEL as i32)
- .mutable_ready()
- .build(),
- glib::ParamSpecEnum::builder("filter", FilterType::static_type())
+ glib::ParamSpecEnum::builder::<CompressionLevel>(
+ "compression-level",
+ DEFAULT_COMPRESSION_LEVEL,
+ )
+ .nick("Compression level")
+ .blurb("Selects the compression algorithm to use")
+ .mutable_ready()
+ .build(),
+ glib::ParamSpecEnum::builder::<FilterType>("filter", DEFAULT_FILTER_TYPE)
.nick("Filter")
.blurb("Selects the filter type to applied")
- .default_value(DEFAULT_FILTER_TYPE as i32)
.mutable_ready()
.build(),
]