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:
authorSebastian Dröge <sebastian@centricular.com>2021-11-20 13:25:14 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-11-20 15:31:06 +0300
commit55aad51141907ea7834eb0cbcdf6f92e3fdce5d1 (patch)
treef556878f25667e079ce6d0dac96bda76f5f8be31
parent288acaa7ccb596e63af47b8ef7b8408a84f973b3 (diff)
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
-rw-r--r--audio/audiofx/src/audioecho/imp.rs8
-rw-r--r--audio/audiofx/src/audioloudnorm/imp.rs8
-rw-r--r--audio/audiofx/src/ebur128level/imp.rs6
-rw-r--r--audio/csound/src/filter/imp.rs8
-rw-r--r--generic/file/src/filesink/imp.rs2
-rw-r--r--generic/file/src/filesrc/imp.rs2
-rw-r--r--generic/fmp4/src/fmp4mux/boxes.rs4
-rw-r--r--generic/fmp4/src/fmp4mux/imp.rs8
-rw-r--r--generic/sodium/src/decrypter/imp.rs4
-rw-r--r--generic/sodium/src/encrypter/imp.rs6
-rw-r--r--generic/threadshare/src/appsrc/imp.rs10
-rw-r--r--generic/threadshare/src/inputselector/imp.rs6
-rw-r--r--generic/threadshare/src/jitterbuffer/imp.rs14
-rw-r--r--generic/threadshare/src/proxy/imp.rs14
-rw-r--r--generic/threadshare/src/queue/imp.rs10
-rw-r--r--generic/threadshare/src/tcpclientsrc/imp.rs12
-rw-r--r--generic/threadshare/src/udpsink/imp.rs34
-rw-r--r--generic/threadshare/src/udpsrc/imp.rs20
-rw-r--r--generic/threadshare/tests/pad.rs4
-rw-r--r--net/hlssink3/src/imp.rs16
-rw-r--r--net/reqwest/src/reqwesthttpsrc/imp.rs28
-rw-r--r--net/rusoto/src/aws_transcriber/imp.rs16
-rw-r--r--net/rusoto/src/s3sink/imp.rs14
-rw-r--r--net/rusoto/src/s3src/imp.rs6
-rw-r--r--text/regex/src/gstregex/imp.rs6
-rw-r--r--text/wrap/src/gsttextwrap/imp.rs8
-rw-r--r--tutorial/src/progressbin/imp.rs2
-rw-r--r--tutorial/src/rgb2gray/imp.rs4
-rw-r--r--tutorial/src/sinesrc/imp.rs10
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs2
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/imp.rs30
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs4
-rw-r--r--utils/fallbackswitch/src/fallbackswitch/imp.rs12
-rw-r--r--utils/togglerecord/src/togglerecord/imp.rs6
-rw-r--r--video/closedcaption/src/ccdetect/imp.rs6
-rw-r--r--video/closedcaption/src/cea608overlay/imp.rs6
-rw-r--r--video/closedcaption/src/cea608tojson/imp.rs2
-rw-r--r--video/closedcaption/src/mcc_enc/imp.rs4
-rw-r--r--video/closedcaption/src/transcriberbin/imp.rs12
-rw-r--r--video/closedcaption/src/tttocea608/imp.rs6
-rw-r--r--video/closedcaption/src/tttojson/imp.rs2
-rw-r--r--video/closedcaption/tests/mcc_enc.rs2
-rw-r--r--video/gif/src/gifenc/imp.rs4
-rw-r--r--video/gtk4/src/sink/imp.rs2
-rw-r--r--video/hsv/src/hsvdetector/imp.rs12
-rw-r--r--video/hsv/src/hsvfilter/imp.rs10
-rw-r--r--video/rav1e/src/rav1enc/imp.rs20
-rw-r--r--video/rspng/src/pngenc/imp.rs4
48 files changed, 218 insertions, 218 deletions
diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs
index 56a1287f0..745fef2b5 100644
--- a/audio/audiofx/src/audioecho/imp.rs
+++ b/audio/audiofx/src/audioecho/imp.rs
@@ -96,14 +96,14 @@ impl ObjectImpl for AudioEcho {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_uint64("max-delay",
+ glib::ParamSpecUInt64::new("max-delay",
"Maximum Delay",
"Maximum delay of the echo in nanoseconds (can't be changed in PLAYING or PAUSED state)",
0, u64::MAX - 1,
DEFAULT_MAX_DELAY.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"delay",
"Delay",
"Delay of the echo in nanoseconds",
@@ -112,7 +112,7 @@ impl ObjectImpl for AudioEcho {
DEFAULT_DELAY.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"intensity",
"Intensity",
"Intensity of the echo",
@@ -121,7 +121,7 @@ impl ObjectImpl for AudioEcho {
DEFAULT_INTENSITY,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"feedback",
"Feedback",
"Amount of feedback",
diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs
index a0d963e24..22c8e5fda 100644
--- a/audio/audiofx/src/audioloudnorm/imp.rs
+++ b/audio/audiofx/src/audioloudnorm/imp.rs
@@ -1769,7 +1769,7 @@ impl ObjectImpl for AudioLoudNorm {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"loudness-target",
"Loudness Target",
"Loudness target in LUFS",
@@ -1778,7 +1778,7 @@ impl ObjectImpl for AudioLoudNorm {
DEFAULT_LOUDNESS_TARGET,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"loudness-range-target",
"Loudness Range Target",
"Loudness range target in LU",
@@ -1787,7 +1787,7 @@ impl ObjectImpl for AudioLoudNorm {
DEFAULT_LOUDNESS_RANGE_TARGET,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"max-true-peak",
"Maximum True Peak",
"Maximum True Peak in dbTP",
@@ -1796,7 +1796,7 @@ impl ObjectImpl for AudioLoudNorm {
DEFAULT_MAX_TRUE_PEAK,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"offset",
"Offset Gain",
"Offset Gain in LU",
diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs
index 316fc9ed9..abc2bfedf 100644
--- a/audio/audiofx/src/ebur128level/imp.rs
+++ b/audio/audiofx/src/ebur128level/imp.rs
@@ -147,7 +147,7 @@ impl ObjectImpl for EbuR128Level {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_flags(
+ glib::ParamSpecFlags::new(
"mode",
"Mode",
"Selection of metrics to calculate",
@@ -155,14 +155,14 @@ impl ObjectImpl for EbuR128Level {
DEFAULT_MODE.bits() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"post-messages",
"Post Messages",
"Whether to post messages on the bus for each interval",
DEFAULT_POST_MESSAGES,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"interval",
"Interval",
"Interval in nanoseconds for posting messages",
diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs
index 9341a30b9..bf1b4e270 100644
--- a/audio/csound/src/filter/imp.rs
+++ b/audio/csound/src/filter/imp.rs
@@ -347,14 +347,14 @@ impl ObjectImpl for CsoundFilter {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"loop",
"Loop",
"loop over the score (can be changed in PLAYING or PAUSED state)",
DEFAULT_LOOP,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"location",
"Location",
"Location of the csd file to be used by csound.
@@ -362,7 +362,7 @@ impl ObjectImpl for CsoundFilter {
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"csd-text",
"CSD-text",
"The content of a csd file passed as a String.
@@ -370,7 +370,7 @@ impl ObjectImpl for CsoundFilter {
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_double(
+ glib::ParamSpecDouble::new(
"score-offset",
"Score Offset",
"Score offset in seconds to start the performance",
diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs
index d7ad84856..d1714e04d 100644
--- a/generic/file/src/filesink/imp.rs
+++ b/generic/file/src/filesink/imp.rs
@@ -117,7 +117,7 @@ impl ObjectSubclass for FileSink {
impl ObjectImpl for FileSink {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_string(
+ vec![glib::ParamSpecString::new(
"location",
"File Location",
"Location of the file to write",
diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs
index c8ae66b28..e038cd718 100644
--- a/generic/file/src/filesrc/imp.rs
+++ b/generic/file/src/filesrc/imp.rs
@@ -131,7 +131,7 @@ impl ObjectSubclass for FileSrc {
impl ObjectImpl for FileSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_string(
+ vec![glib::ParamSpecString::new(
"location",
"File Location",
"Location of the file to read from",
diff --git a/generic/fmp4/src/fmp4mux/boxes.rs b/generic/fmp4/src/fmp4mux/boxes.rs
index 7f9ae910b..7caa12835 100644
--- a/generic/fmp4/src/fmp4mux/boxes.rs
+++ b/generic/fmp4/src/fmp4mux/boxes.rs
@@ -375,8 +375,8 @@ pub(super) fn create_fmp4_header(cfg: super::HeaderConfiguration) -> Result<gst:
fn write_moov(v: &mut Vec<u8>, cfg: &super::HeaderConfiguration) -> Result<(), Error> {
use gst::glib;
- let base = glib::DateTime::new_utc(1904, 1, 1, 0, 0, 0.0)?;
- let now = glib::DateTime::new_now_utc()?;
+ let base = glib::DateTime::from_utc(1904, 1, 1, 0, 0, 0.0)?;
+ let now = glib::DateTime::now_utc()?;
let creation_time =
u64::try_from(now.difference(&base).as_seconds()).expect("time before 1904");
diff --git a/generic/fmp4/src/fmp4mux/imp.rs b/generic/fmp4/src/fmp4mux/imp.rs
index 26e0df144..f3106921f 100644
--- a/generic/fmp4/src/fmp4mux/imp.rs
+++ b/generic/fmp4/src/fmp4mux/imp.rs
@@ -1110,7 +1110,7 @@ impl ObjectImpl for FMP4Mux {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
// TODO: Add chunk-duration property separate from fragment-size
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"fragment-duration",
"Fragment Duration",
"Duration for each FMP4 fragment",
@@ -1119,7 +1119,7 @@ impl ObjectImpl for FMP4Mux {
DEFAULT_FRAGMENT_DURATION.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"header-update-mode",
"Header update mode",
"Mode for updating the header at the end of the stream",
@@ -1127,14 +1127,14 @@ impl ObjectImpl for FMP4Mux {
DEFAULT_HEADER_UPDATE_MODE as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"write-mfra",
"Write mfra box",
"Write fragment random access box at the end of the stream",
DEFAULT_WRITE_MFRA,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"write-mehd",
"Write mehd box",
"Write movie extends header box with the duration at the end of the stream (needs a header-update-mode enabled)",
diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs
index 8c5d27541..02e0faa00 100644
--- a/generic/sodium/src/decrypter/imp.rs
+++ b/generic/sodium/src/decrypter/imp.rs
@@ -598,14 +598,14 @@ impl ObjectImpl for Decrypter {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"receiver-key",
"Receiver Key",
"The private key of the Reeiver",
glib::Bytes::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"sender-key",
"Sender Key",
"The public key of the Sender",
diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs
index 5ae2e1887..fe57cf485 100644
--- a/generic/sodium/src/encrypter/imp.rs
+++ b/generic/sodium/src/encrypter/imp.rs
@@ -390,21 +390,21 @@ impl ObjectImpl for Encrypter {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"receiver-key",
"Receiver Key",
"The public key of the Receiver",
glib::Bytes::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"sender-key",
"Sender Key",
"The private key of the Sender",
glib::Bytes::static_type(),
glib::ParamFlags::WRITABLE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"block-size",
"Block Size",
"The block-size of the chunks",
diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs
index 3e62421d2..4625ca493 100644
--- a/generic/threadshare/src/appsrc/imp.rs
+++ b/generic/threadshare/src/appsrc/imp.rs
@@ -527,14 +527,14 @@ impl ObjectImpl for AppSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -543,7 +543,7 @@ impl ObjectImpl for AppSrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-buffers",
"Max Buffers",
"Maximum number of buffers to queue up",
@@ -552,14 +552,14 @@ impl ObjectImpl for AppSrc {
DEFAULT_MAX_BUFFERS,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"caps",
"Caps",
"Caps to use",
gst::Caps::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"do-timestamp",
"Do Timestamp",
"Timestamp buffers with the current running time on arrival",
diff --git a/generic/threadshare/src/inputselector/imp.rs b/generic/threadshare/src/inputselector/imp.rs
index 972e81d46..3dfcca440 100644
--- a/generic/threadshare/src/inputselector/imp.rs
+++ b/generic/threadshare/src/inputselector/imp.rs
@@ -413,14 +413,14 @@ impl ObjectImpl for InputSelector {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -429,7 +429,7 @@ impl ObjectImpl for InputSelector {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"active-pad",
"Active Pad",
"Currently active pad",
diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs
index 3ce777139..1431783cd 100644
--- a/generic/threadshare/src/jitterbuffer/imp.rs
+++ b/generic/threadshare/src/jitterbuffer/imp.rs
@@ -1343,14 +1343,14 @@ impl ObjectImpl for JitterBuffer {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -1359,7 +1359,7 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_CONTEXT_WAIT.mseconds() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"latency",
"Buffer latency in ms",
"Amount of ms to buffer",
@@ -1368,14 +1368,14 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_LATENCY.mseconds() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"do-lost",
"Do Lost",
"Send an event downstream when a packet is lost",
DEFAULT_DO_LOST,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-dropout-time",
"Max dropout time",
"The maximum time (milliseconds) of missing packets tolerated.",
@@ -1384,7 +1384,7 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_MAX_DROPOUT_TIME,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-misorder-time",
"Max misorder time",
"The maximum time (milliseconds) of misordered packets tolerated.",
@@ -1393,7 +1393,7 @@ impl ObjectImpl for JitterBuffer {
DEFAULT_MAX_MISORDER_TIME,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"stats",
"Statistics",
"Various statistics",
diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs
index 29f8649d4..9daa98fe7 100644
--- a/generic/threadshare/src/proxy/imp.rs
+++ b/generic/threadshare/src/proxy/imp.rs
@@ -589,7 +589,7 @@ impl ObjectSubclass for ProxySink {
impl ObjectImpl for ProxySink {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_string(
+ vec![glib::ParamSpecString::new(
"proxy-context",
"Proxy Context",
"Context name of the proxy to share with",
@@ -1131,14 +1131,14 @@ impl ObjectImpl for ProxySrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -1147,14 +1147,14 @@ impl ObjectImpl for ProxySrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"proxy-context",
"Proxy Context",
"Context name of the proxy to share with",
Some(DEFAULT_PROXY_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-size-buffers",
"Max Size Buffers",
"Maximum number of buffers to queue (0=unlimited)",
@@ -1163,7 +1163,7 @@ impl ObjectImpl for ProxySrc {
DEFAULT_MAX_SIZE_BUFFERS,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-size-bytes",
"Max Size Bytes",
"Maximum number of bytes to queue (0=unlimited)",
@@ -1172,7 +1172,7 @@ impl ObjectImpl for ProxySrc {
DEFAULT_MAX_SIZE_BYTES,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"max-size-time",
"Max Size Time",
"Maximum number of nanoseconds to queue (0=unlimited)",
diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs
index 0ab5825e3..c4b928728 100644
--- a/generic/threadshare/src/queue/imp.rs
+++ b/generic/threadshare/src/queue/imp.rs
@@ -717,14 +717,14 @@ impl ObjectImpl for Queue {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -733,7 +733,7 @@ impl ObjectImpl for Queue {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-size-buffers",
"Max Size Buffers",
"Maximum number of buffers to queue (0=unlimited)",
@@ -742,7 +742,7 @@ impl ObjectImpl for Queue {
DEFAULT_MAX_SIZE_BUFFERS,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-size-bytes",
"Max Size Bytes",
"Maximum number of bytes to queue (0=unlimited)",
@@ -751,7 +751,7 @@ impl ObjectImpl for Queue {
DEFAULT_MAX_SIZE_BYTES,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"max-size-time",
"Max Size Time",
"Maximum number of nanoseconds to queue (0=unlimited)",
diff --git a/generic/threadshare/src/tcpclientsrc/imp.rs b/generic/threadshare/src/tcpclientsrc/imp.rs
index f0475d410..e568f5d21 100644
--- a/generic/threadshare/src/tcpclientsrc/imp.rs
+++ b/generic/threadshare/src/tcpclientsrc/imp.rs
@@ -568,14 +568,14 @@ impl ObjectImpl for TcpClientSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -584,14 +584,14 @@ impl ObjectImpl for TcpClientSrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"host",
"Host",
"The host IP address to receive packets from",
DEFAULT_HOST,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"port",
"Port",
"Port to receive packets from",
@@ -600,14 +600,14 @@ impl ObjectImpl for TcpClientSrc {
DEFAULT_PORT,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"caps",
"Caps",
"Caps to use",
gst::Caps::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"blocksize",
"Blocksize",
"Size in bytes to read per buffer (-1 = default)",
diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs
index 18f7e0851..e5c01b888 100644
--- a/generic/threadshare/src/udpsink/imp.rs
+++ b/generic/threadshare/src/udpsink/imp.rs
@@ -966,14 +966,14 @@ impl ObjectImpl for UdpSink {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -982,21 +982,21 @@ impl ObjectImpl for UdpSink {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"sync",
"Sync",
"Sync on the clock",
DEFAULT_SYNC,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"bind-address",
"Bind Address",
"Address to bind the socket to",
Some(DEFAULT_BIND_ADDRESS),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"bind-port",
"Bind Port",
"Port to bind the socket to",
@@ -1005,14 +1005,14 @@ impl ObjectImpl for UdpSink {
DEFAULT_BIND_PORT,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"bind-address-v6",
"Bind Address V6",
"Address to bind the V6 socket to",
Some(DEFAULT_BIND_ADDRESS_V6),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"bind-port-v6",
"Bind Port",
"Port to bind the V6 socket to",
@@ -1021,49 +1021,49 @@ impl ObjectImpl for UdpSink {
DEFAULT_BIND_PORT_V6,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"socket",
"Socket",
"Socket to use for UDP transmission. (None == allocate)",
gio::Socket::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"used-socket",
"Used Socket",
"Socket currently in use for UDP transmission. (None = no socket)",
gio::Socket::static_type(),
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"socket-v6",
"Socket V6",
"IPV6 Socket to use for UDP transmission. (None == allocate)",
gio::Socket::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"used-socket-v6",
"Used Socket V6",
"V6 Socket currently in use for UDP transmission. (None = no socket)",
gio::Socket::static_type(),
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"auto-multicast",
"Auto multicast",
"Automatically join/leave the multicast groups, FALSE means user has to do it himself",
DEFAULT_AUTO_MULTICAST,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"loop",
"Loop",
"Set the multicast loop parameter.",
DEFAULT_LOOP,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"ttl",
"Time To Live",
"Used for setting the unicast TTL parameter",
@@ -1072,7 +1072,7 @@ impl ObjectImpl for UdpSink {
DEFAULT_TTL,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"ttl-mc",
"Time To Live Multicast",
"Used for setting the multicast TTL parameter",
@@ -1081,7 +1081,7 @@ impl ObjectImpl for UdpSink {
DEFAULT_TTL_MC,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"qos-dscp",
"QoS DSCP",
"Quality of Service, differentiated services code point (-1 default)",
@@ -1090,7 +1090,7 @@ impl ObjectImpl for UdpSink {
DEFAULT_QOS_DSCP,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"clients",
"Clients",
"A comma separated list of host:port pairs with destinations",
diff --git a/generic/threadshare/src/udpsrc/imp.rs b/generic/threadshare/src/udpsrc/imp.rs
index af8855928..5a423fa43 100644
--- a/generic/threadshare/src/udpsrc/imp.rs
+++ b/generic/threadshare/src/udpsrc/imp.rs
@@ -709,14 +709,14 @@ impl ObjectImpl for UdpSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
let mut properties = vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
Some(DEFAULT_CONTEXT),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"context-wait",
"Context Wait",
"Throttle poll loop to run at most once every this many ms",
@@ -725,14 +725,14 @@ impl ObjectImpl for UdpSrc {
DEFAULT_CONTEXT_WAIT.as_millis() as u32,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"address",
"Address",
"Address/multicast group to listen on",
DEFAULT_ADDRESS,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"port",
"Port",
"Port to listen on",
@@ -741,21 +741,21 @@ impl ObjectImpl for UdpSrc {
DEFAULT_PORT,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"reuse",
"Reuse",
"Allow reuse of the port",
DEFAULT_REUSE,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"caps",
"Caps",
"Caps to use",
gst::Caps::static_type(),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"mtu",
"MTU",
"Maximum expected packet size. This directly defines the allocation size of the receive buffer pool",
@@ -764,7 +764,7 @@ impl ObjectImpl for UdpSrc {
DEFAULT_MTU,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"retrieve-sender-address",
"Retrieve sender address",
"Whether to retrieve the sender address and add it to buffers as meta. Disabling this might result in minor performance improvements in certain scenarios",
@@ -775,14 +775,14 @@ impl ObjectImpl for UdpSrc {
#[cfg(not(windows))]
{
- properties.push(glib::ParamSpec::new_object(
+ properties.push(glib::ParamSpecObject::new(
"socket",
"Socket",
"Socket to use for UDP reception. (None == allocate)",
gio::Socket::static_type(),
glib::ParamFlags::READWRITE,
));
- properties.push(glib::ParamSpec::new_object(
+ properties.push(glib::ParamSpecObject::new(
"used-socket",
"Used Socket",
"Socket currently in use for UDP reception. (None = no socket)",
diff --git a/generic/threadshare/tests/pad.rs b/generic/threadshare/tests/pad.rs
index d958e4e77..91476c462 100644
--- a/generic/threadshare/tests/pad.rs
+++ b/generic/threadshare/tests/pad.rs
@@ -325,7 +325,7 @@ mod imp_src {
impl ObjectImpl for ElementSrcTest {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_string(
+ vec![glib::ParamSpecString::new(
"context",
"Context",
"Context name to share threads with",
@@ -657,7 +657,7 @@ mod imp_sink {
impl ObjectImpl for ElementSinkTest {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_boxed(
+ vec![glib::ParamSpecBoxed::new(
"sender",
"Sender",
"Channel sender to forward the incoming items to",
diff --git a/net/hlssink3/src/imp.rs b/net/hlssink3/src/imp.rs
index cb4359d4c..4f3440dc5 100644
--- a/net/hlssink3/src/imp.rs
+++ b/net/hlssink3/src/imp.rs
@@ -384,28 +384,28 @@ impl ObjectImpl for HlsSink3 {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"location",
"File Location",
"Location of the file to write",
Some(DEFAULT_LOCATION),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"playlist-location",
"Playlist Location",
"Location of the playlist to write.",
Some(DEFAULT_PLAYLIST_LOCATION),
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"playlist-root",
"Playlist Root",
"Location of the playlist to write.",
None,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"max-files",
"Max files",
"Maximum number of files to keep on disk. Once the maximum is reached, old files start to be deleted to make room for new ones.",
@@ -414,7 +414,7 @@ impl ObjectImpl for HlsSink3 {
DEFAULT_MAX_NUM_SEGMENT_FILES,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"target-duration",
"Target duration",
"The target duration in seconds of a segment/file. (0 - disabled, useful for management of segment duration by the streaming server)",
@@ -423,7 +423,7 @@ impl ObjectImpl for HlsSink3 {
DEFAULT_TARGET_DURATION,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"playlist-length",
"Playlist length",
"Length of HLS playlist. To allow players to conform to section 6.3.3 of the HLS specification, this should be at least 3. If set to 0, the playlist will be infinite.",
@@ -432,14 +432,14 @@ impl ObjectImpl for HlsSink3 {
DEFAULT_PLAYLIST_LENGTH,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"playlist-type",
"Playlist Type",
"The type of the playlist to use. When VOD type is set, the playlist will be live until the pipeline ends execution.",
None,
glib::ParamFlags::READWRITE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"send-keyframe-requests",
"Send Keyframe Requests",
"Send keyframe requests to ensure correct fragmentation. If this is disabled then the input must have keyframes in regular intervals.",
diff --git a/net/reqwest/src/reqwesthttpsrc/imp.rs b/net/reqwest/src/reqwesthttpsrc/imp.rs
index 7516d4bdd..bf04d096b 100644
--- a/net/reqwest/src/reqwesthttpsrc/imp.rs
+++ b/net/reqwest/src/reqwesthttpsrc/imp.rs
@@ -672,42 +672,42 @@ impl ObjectImpl for ReqwestHttpSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"location",
"Location",
"URL to read from",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"user-agent",
"User-Agent",
"Value of the User-Agent HTTP request header field",
DEFAULT_USER_AGENT.into(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"is-live",
"Is Live",
"Act like a live source",
DEFAULT_IS_LIVE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"user-id",
"User-id",
"HTTP location URI user id for authentication",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"user-pw",
"User-pw",
"HTTP location URI user password for authentication",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"timeout",
"Timeout",
"Value in seconds to timeout a blocking I/O (0 = No timeout).",
@@ -716,56 +716,56 @@ impl ObjectImpl for ReqwestHttpSrc {
DEFAULT_TIMEOUT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"compress",
"Compress",
"Allow compressed content encodings",
DEFAULT_COMPRESS,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"extra-headers",
"Extra Headers",
"Extra headers to append to the HTTP request",
gst::Structure::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"cookies",
"Cookies",
"HTTP request cookies",
Vec::<String>::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"iradio-mode",
"I-Radio Mode",
"Enable internet radio mode (ask server to send shoutcast/icecast metadata interleaved with the actual stream data",
DEFAULT_IRADIO_MODE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"keep-alive",
"Keep Alive",
"Use HTTP persistent connections",
DEFAULT_KEEP_ALIVE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"proxy",
"Proxy",
"HTTP proxy server URI",
Some(""),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"proxy-id",
"Proxy-id",
"HTTP proxy URI user id for authentication",
Some(""),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"proxy-pw",
"Proxy-pw",
"HTTP proxy URI user password for authentication",
diff --git a/net/rusoto/src/aws_transcriber/imp.rs b/net/rusoto/src/aws_transcriber/imp.rs
index 2874ea42e..2b111f17f 100644
--- a/net/rusoto/src/aws_transcriber/imp.rs
+++ b/net/rusoto/src/aws_transcriber/imp.rs
@@ -1088,7 +1088,7 @@ impl ObjectImpl for Transcriber {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"language-code",
"Language Code",
"The Language of the Stream, see \
@@ -1097,7 +1097,7 @@ impl ObjectImpl for Transcriber {
Some("en-US"),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"latency",
"Latency",
"Amount of milliseconds to allow AWS transcribe",
@@ -1106,7 +1106,7 @@ impl ObjectImpl for Transcriber {
DEFAULT_LATENCY.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"lateness",
"Lateness",
"Amount of milliseconds to introduce as lateness",
@@ -1115,7 +1115,7 @@ impl ObjectImpl for Transcriber {
DEFAULT_LATENESS.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"vocabulary-name",
"Vocabulary Name",
"The name of a custom vocabulary, see \
@@ -1124,14 +1124,14 @@ impl ObjectImpl for Transcriber {
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"session-id",
"Session ID",
"The ID of the transcription session, must be length 36",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"results-stability",
"Results stability",
"Defines how fast results should stabilize",
@@ -1139,14 +1139,14 @@ impl ObjectImpl for Transcriber {
DEFAULT_STABILITY as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"access-key",
"Access Key",
"AWS Access Key",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"secret-access-key",
"Secret Access Key",
"AWS Secret Access Key",
diff --git a/net/rusoto/src/s3sink/imp.rs b/net/rusoto/src/s3sink/imp.rs
index 63c42569e..52021eaff 100644
--- a/net/rusoto/src/s3sink/imp.rs
+++ b/net/rusoto/src/s3sink/imp.rs
@@ -434,28 +434,28 @@ impl ObjectImpl for S3Sink {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"bucket",
"S3 Bucket",
"The bucket of the file to write",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"key",
"S3 Key",
"The key of the file to write",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"region",
"AWS Region",
"An AWS region (e.g. eu-west-2).",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"part-size",
"Part size",
"A size (in bytes) of an individual part used for multipart upload.",
@@ -464,21 +464,21 @@ impl ObjectImpl for S3Sink {
DEFAULT_BUFFER_SIZE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"uri",
"URI",
"The S3 object URI",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"access-key",
"Access Key",
"AWS Access Key",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"secret-access-key",
"Secret Access Key",
"AWS Secret Access Key",
diff --git a/net/rusoto/src/s3src/imp.rs b/net/rusoto/src/s3src/imp.rs
index 0d227a9f3..3c823b8fb 100644
--- a/net/rusoto/src/s3src/imp.rs
+++ b/net/rusoto/src/s3src/imp.rs
@@ -247,21 +247,21 @@ impl ObjectImpl for S3Src {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"uri",
"URI",
"The S3 object URI",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"access-key",
"Access Key",
"AWS Access Key",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"secret-access-key",
"Secret Access Key",
"AWS Secret Access Key",
diff --git a/text/regex/src/gstregex/imp.rs b/text/regex/src/gstregex/imp.rs
index 0dd73b3ac..857d39d35 100644
--- a/text/regex/src/gstregex/imp.rs
+++ b/text/regex/src/gstregex/imp.rs
@@ -156,17 +156,17 @@ impl ObjectSubclass for RegEx {
impl ObjectImpl for RegEx {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_array(
+ vec![gst::ParamSpecArray::new(
"commands",
"Commands",
"A set of commands to apply on input text",
- &glib::ParamSpec::new_boxed(
+ Some(&glib::ParamSpecBoxed::new(
"command",
"Command",
"A command to apply on input text",
gst::Structure::static_type(),
glib::ParamFlags::READWRITE,
- ),
+ )),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
)]
});
diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs
index 369afa2b1..b7395a95b 100644
--- a/text/wrap/src/gsttextwrap/imp.rs
+++ b/text/wrap/src/gsttextwrap/imp.rs
@@ -498,7 +498,7 @@ impl ObjectImpl for TextWrap {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"dictionary",
"Dictionary",
"Path to a dictionary to load at runtime to perform hyphenation, see \
@@ -506,7 +506,7 @@ impl ObjectImpl for TextWrap {
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"columns",
"Columns",
"Maximum number of columns for any given line",
@@ -515,7 +515,7 @@ impl ObjectImpl for TextWrap {
DEFAULT_COLUMNS,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"lines",
"Lines",
"Split input buffer into output buffers with max lines (0=do not split)",
@@ -524,7 +524,7 @@ impl ObjectImpl for TextWrap {
DEFAULT_LINES,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"accumulate-time",
"accumulate-time",
"Cut-off time for input text accumulation (0=do not accumulate)",
diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs
index 18c6b5752..5029c9c59 100644
--- a/tutorial/src/progressbin/imp.rs
+++ b/tutorial/src/progressbin/imp.rs
@@ -81,7 +81,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::new_enum(
+ vec![glib::ParamSpecEnum::new(
"output",
"Output",
"Defines the output type of the progressbin",
diff --git a/tutorial/src/rgb2gray/imp.rs b/tutorial/src/rgb2gray/imp.rs
index 06d90dc2d..d79a0633b 100644
--- a/tutorial/src/rgb2gray/imp.rs
+++ b/tutorial/src/rgb2gray/imp.rs
@@ -97,14 +97,14 @@ impl ObjectImpl for Rgb2Gray {
// Metadata for the properties
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"invert",
"Invert",
"Invert grayscale output",
DEFAULT_INVERT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"shift",
"Shift",
"Shift grayscale output (wrapping around)",
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",
diff --git a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs
index 8dce78733..5a752ac1d 100644
--- a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs
@@ -63,7 +63,7 @@ impl ObjectSubclass for CustomSource {
impl ObjectImpl for CustomSource {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_object(
+ vec![glib::ParamSpecObject::new(
"source",
"Source",
"Source",
diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs
index c2ced7ef3..dbe49d988 100644
--- a/utils/fallbackswitch/src/fallbacksrc/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs
@@ -199,36 +199,36 @@ impl ObjectImpl for FallbackSrc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"enable-audio",
"Enable Audio",
"Enable the audio stream, this will output silence if there's no audio in the configured URI",
true,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"enable-video",
"Enable Video",
"Enable the video stream, this will output black or the fallback video if there's no video in the configured URI",
true,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string("uri", "URI", "URI to use", None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY),
- glib::ParamSpec::new_object(
+ glib::ParamSpecString::new("uri", "URI", "URI to use", None, glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY),
+ glib::ParamSpecObject::new(
"source",
"Source",
"Source to use instead of the URI",
gst::Element::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"fallback-uri",
"Fallback URI",
"Fallback URI to use for video in case the main stream doesn't work",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"timeout",
"Timeout",
"Timeout for switching to the fallback URI",
@@ -237,7 +237,7 @@ impl ObjectImpl for FallbackSrc {
5 * *gst::ClockTime::SECOND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"restart-timeout",
"Timeout",
"Timeout for restarting an active source",
@@ -246,7 +246,7 @@ impl ObjectImpl for FallbackSrc {
5 * *gst::ClockTime::SECOND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"retry-timeout",
"Retry Timeout",
"Timeout for stopping after repeated failure",
@@ -255,14 +255,14 @@ impl ObjectImpl for FallbackSrc {
60 * *gst::ClockTime::SECOND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"restart-on-eos",
"Restart on EOS",
"Restart source on EOS",
false,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"status",
"Status",
"Current source status",
@@ -270,7 +270,7 @@ impl ObjectImpl for FallbackSrc {
Status::Stopped as i32,
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"min-latency",
"Minimum Latency",
"When the main source has a higher latency than the fallback source \
@@ -281,7 +281,7 @@ impl ObjectImpl for FallbackSrc {
0,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_int64(
+ glib::ParamSpecInt64::new(
"buffer-duration",
"Buffer Duration",
"Buffer duration when buffering streams (-1 default value)",
@@ -290,21 +290,21 @@ impl ObjectImpl for FallbackSrc {
-1,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"statistics",
"Statistics",
"Various statistics",
gst::Structure::static_type(),
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"manual-unblock",
"Manual unblock",
"When enabled, the application must call the unblock signal, except for live streams",
false,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"immediate-fallback",
"Immediate fallback",
"Forward the fallback streams immediately at startup, when the primary streams are slow to start up and immediate output is required",
diff --git a/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs b/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs
index 9e49b25c7..5925b8f83 100644
--- a/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/video_fallback/imp.rs
@@ -83,14 +83,14 @@ impl ObjectImpl for VideoFallbackSource {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"uri",
"URI",
"URI to use for video in case the main stream doesn't work",
None,
glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"min-latency",
"Minimum Latency",
"Minimum Latency",
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs
index 37b53f9ec..5a0a1f51a 100644
--- a/utils/fallbackswitch/src/fallbackswitch/imp.rs
+++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs
@@ -682,7 +682,7 @@ impl ObjectImpl for FallbackSwitch {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"timeout",
"Timeout",
"Timeout in nanoseconds",
@@ -691,21 +691,21 @@ impl ObjectImpl for FallbackSwitch {
DEFAULT_TIMEOUT.nseconds() as u64,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"active-pad",
"Active Pad",
"Currently active pad. Writes are ignored if auto-switch=true",
gst::Pad::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"auto-switch",
"Automatically switch pads",
"Automatically switch pads (If true, prefer primary sink, otherwise manual selection via the active-pad property)",
DEFAULT_AUTO_SWITCH,
glib::ParamFlags::READWRITE| gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"primary-health",
"Primary stream state",
"Reports the health of the primary stream on the sink pad",
@@ -713,7 +713,7 @@ impl ObjectImpl for FallbackSwitch {
DEFAULT_STREAM_HEALTH as i32,
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"fallback-health",
"Fallback stream state",
"Reports the health of the fallback stream on the fallback_sink pad",
@@ -721,7 +721,7 @@ impl ObjectImpl for FallbackSwitch {
DEFAULT_STREAM_HEALTH as i32,
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"immediate-fallback",
"Immediate fallback",
"Forward the fallback stream immediately at startup, when the primary stream is slow to start up and immediate output is required",
diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs
index e4aea0d3a..38a9d8719 100644
--- a/utils/togglerecord/src/togglerecord/imp.rs
+++ b/utils/togglerecord/src/togglerecord/imp.rs
@@ -1752,21 +1752,21 @@ impl ObjectImpl for ToggleRecord {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"record",
"Record",
"Enable/disable recording",
DEFAULT_RECORD,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"recording",
"Recording",
"Whether recording is currently taking place",
DEFAULT_RECORD,
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"is-live",
"Live mode",
"Live mode: no \"gap eating\", forward incoming segment",
diff --git a/video/closedcaption/src/ccdetect/imp.rs b/video/closedcaption/src/ccdetect/imp.rs
index 54f414c00..cd85cde84 100644
--- a/video/closedcaption/src/ccdetect/imp.rs
+++ b/video/closedcaption/src/ccdetect/imp.rs
@@ -228,7 +228,7 @@ impl ObjectImpl for CCDetect {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"window",
"Window",
"Window of time (in ns) to determine if captions exist in the stream",
@@ -237,14 +237,14 @@ impl ObjectImpl for CCDetect {
DEFAULT_WINDOW.nseconds(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"cc608",
"cc608",
"Whether CEA608 captions (CC1/CC3) have been detected",
DEFAULT_CC608,
glib::ParamFlags::READABLE,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"cc708",
"cc608",
"Whether CEA708 captions (cc_data) have been detected",
diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs
index 6a4c449ec..66065664d 100644
--- a/video/closedcaption/src/cea608overlay/imp.rs
+++ b/video/closedcaption/src/cea608overlay/imp.rs
@@ -611,7 +611,7 @@ impl ObjectImpl for Cea608Overlay {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"field",
"Field",
"The field to render the caption for when available, (-1=automatic)",
@@ -620,14 +620,14 @@ impl ObjectImpl for Cea608Overlay {
DEFAULT_FIELD,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"black-background",
"Black background",
"Whether a black background should be drawn behind text",
DEFAULT_BLACK_BACKGROUND,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"timeout",
"Timeout",
"Duration after which to erase overlay when no cc data has arrived for the selected field",
diff --git a/video/closedcaption/src/cea608tojson/imp.rs b/video/closedcaption/src/cea608tojson/imp.rs
index 900235fd8..4c67d3d24 100644
--- a/video/closedcaption/src/cea608tojson/imp.rs
+++ b/video/closedcaption/src/cea608tojson/imp.rs
@@ -1015,7 +1015,7 @@ impl ObjectImpl for Cea608ToJson {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_boolean(
+ vec![glib::ParamSpecBoolean::new(
"unbuffered",
"Unbuffered",
"Whether captions should be output at display time, \
diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs
index 48cadc5e1..0d59fd6f2 100644
--- a/video/closedcaption/src/mcc_enc/imp.rs
+++ b/video/closedcaption/src/mcc_enc/imp.rs
@@ -495,14 +495,14 @@ impl ObjectImpl for MccEnc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_string(
+ glib::ParamSpecString::new(
"uuid",
"UUID",
"UUID for the output file",
None,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"creation-date",
"Creation Date",
"Creation date for the output file",
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs
index b174b2a8c..aa084acca 100644
--- a/video/closedcaption/src/transcriberbin/imp.rs
+++ b/video/closedcaption/src/transcriberbin/imp.rs
@@ -564,14 +564,14 @@ impl ObjectImpl for TranscriberBin {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"passthrough",
"Passthrough",
"Whether transcription should occur",
DEFAULT_PASSTHROUGH,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"latency",
"Latency",
"Amount of milliseconds to allow the transcriber",
@@ -580,7 +580,7 @@ impl ObjectImpl for TranscriberBin {
DEFAULT_LATENCY.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"accumulate-time",
"accumulate-time",
"Cut-off time for textwrap accumulation, in milliseconds (0=do not accumulate). \
@@ -590,7 +590,7 @@ impl ObjectImpl for TranscriberBin {
DEFAULT_ACCUMULATE.mseconds() as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"mode",
"Mode",
"Which closed caption mode to operate in",
@@ -598,14 +598,14 @@ impl ObjectImpl for TranscriberBin {
DEFAULT_MODE as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_boxed(
+ glib::ParamSpecBoxed::new(
"cc-caps",
"Closed Caption caps",
"The expected format of the closed captions",
gst::Caps::static_type(),
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_object(
+ glib::ParamSpecObject::new(
"transcriber",
"Transcriber",
"The transcriber element to use",
diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs
index b9b6ab901..e2c16e7f0 100644
--- a/video/closedcaption/src/tttocea608/imp.rs
+++ b/video/closedcaption/src/tttocea608/imp.rs
@@ -1064,7 +1064,7 @@ impl ObjectImpl for TtToCea608 {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"mode",
"Mode",
"Which mode to operate in",
@@ -1072,7 +1072,7 @@ impl ObjectImpl for TtToCea608 {
DEFAULT_MODE as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"origin-row",
"Origin row",
"Origin row, (-1=automatic)",
@@ -1081,7 +1081,7 @@ impl ObjectImpl for TtToCea608 {
DEFAULT_ORIGIN_ROW,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"origin-column",
"Origin column",
"Origin column",
diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs
index 9eda203e9..616ac2aba 100644
--- a/video/closedcaption/src/tttojson/imp.rs
+++ b/video/closedcaption/src/tttojson/imp.rs
@@ -233,7 +233,7 @@ impl ObjectSubclass for TtToJson {
impl ObjectImpl for TtToJson {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_enum(
+ vec![glib::ParamSpecEnum::new(
"mode",
"Mode",
"Which mode to operate in",
diff --git a/video/closedcaption/tests/mcc_enc.rs b/video/closedcaption/tests/mcc_enc.rs
index f3e8c30cf..58d615187 100644
--- a/video/closedcaption/tests/mcc_enc.rs
+++ b/video/closedcaption/tests/mcc_enc.rs
@@ -96,7 +96,7 @@ Time Code Rate=30DF\r\n\
enc.set_property("uuid", "14720C04-857D-40E2-86FC-F080DE44CE74");
enc.set_property(
"creation-date",
- glib::DateTime::new_utc(2018, 12, 27, 17, 34, 47.0).unwrap(),
+ glib::DateTime::from_utc(2018, 12, 27, 17, 34, 47.0).unwrap(),
);
}
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs
index 8bec0302f..7a3c32de7 100644
--- a/video/gif/src/gifenc/imp.rs
+++ b/video/gif/src/gifenc/imp.rs
@@ -144,7 +144,7 @@ impl ObjectImpl for GifEnc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"repeat",
"Repeat",
"Repeat (-1 to loop forever, 0 .. n finite repetitions)",
@@ -153,7 +153,7 @@ impl ObjectImpl for GifEnc {
DEFAULT_REPEAT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"speed",
"Speed",
"Speed (1 .. 30; higher value yields faster encoding)",
diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs
index 70344ed10..3b3705414 100644
--- a/video/gtk4/src/sink/imp.rs
+++ b/video/gtk4/src/sink/imp.rs
@@ -69,7 +69,7 @@ impl ObjectSubclass for PaintableSink {
impl ObjectImpl for PaintableSink {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
- vec![glib::ParamSpec::new_object(
+ vec![glib::ParamSpecObject::new(
"paintable",
"Paintable",
"The Paintable the sink renders to",
diff --git a/video/hsv/src/hsvdetector/imp.rs b/video/hsv/src/hsvdetector/imp.rs
index 2d64072ce..bd758dcdf 100644
--- a/video/hsv/src/hsvdetector/imp.rs
+++ b/video/hsv/src/hsvdetector/imp.rs
@@ -165,7 +165,7 @@ impl ObjectImpl for HsvDetector {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"hue-ref",
"Hue reference",
"Hue reference in degrees",
@@ -174,7 +174,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_HUE_REF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"hue-var",
"Hue variation",
"Allowed hue variation from the reference hue angle, in degrees",
@@ -183,7 +183,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_HUE_VAR,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"saturation-ref",
"Saturation reference",
"Reference saturation value",
@@ -192,7 +192,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_SATURATION_REF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"saturation-var",
"Saturation variation",
"Allowed saturation variation from the reference value",
@@ -201,7 +201,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_SATURATION_VAR,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"value-ref",
"Value reference",
"Reference value value",
@@ -210,7 +210,7 @@ impl ObjectImpl for HsvDetector {
DEFAULT_VALUE_REF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"value-var",
"Value variation",
"Allowed value variation from the reference value",
diff --git a/video/hsv/src/hsvfilter/imp.rs b/video/hsv/src/hsvfilter/imp.rs
index 67fb49218..444fdbd2b 100644
--- a/video/hsv/src/hsvfilter/imp.rs
+++ b/video/hsv/src/hsvfilter/imp.rs
@@ -123,7 +123,7 @@ impl ObjectImpl for HsvFilter {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"hue-shift",
"Hue shift",
"Hue shifting in degrees",
@@ -132,7 +132,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_HUE_SHIFT,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"saturation-mul",
"Saturation multiplier",
"Saturation multiplier to apply to the saturation value (before offset)",
@@ -141,7 +141,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_SATURATION_MUL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"saturation-off",
"Saturation offset",
"Saturation offset to add to the saturation value (after multiplier)",
@@ -150,7 +150,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_SATURATION_OFF,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"value-mul",
"Value multiplier",
"Value multiplier to apply to the value (before offset)",
@@ -159,7 +159,7 @@ impl ObjectImpl for HsvFilter {
DEFAULT_VALUE_MUL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_PLAYING,
),
- glib::ParamSpec::new_float(
+ glib::ParamSpecFloat::new(
"value-off",
"Value offset",
"Value offset to add to the value (after multiplier)",
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index bf32739cc..014dd255a 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -215,7 +215,7 @@ impl ObjectImpl for Rav1Enc {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"speed-preset",
"Speed Preset",
"Speed preset (10 fastest, 0 slowest)",
@@ -224,14 +224,14 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_SPEED_PRESET,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_boolean(
+ glib::ParamSpecBoolean::new(
"low-latency",
"Low Latency",
"Low Latency",
DEFAULT_LOW_LATENCY,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"min-key-frame-interval",
"Min Key Frame Interval",
"Min Key Frame Interval",
@@ -240,7 +240,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_MIN_KEY_FRAME_INTERVAL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint64(
+ glib::ParamSpecUInt64::new(
"max-key-frame-interval",
"Max Key Frame Interval",
"Max Key Frame Interval",
@@ -249,7 +249,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_MAX_KEY_FRAME_INTERVAL,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_int(
+ glib::ParamSpecInt::new(
"bitrate",
"Bitrate",
"Bitrate",
@@ -258,7 +258,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_BITRATE,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"quantizer",
"Quantizer",
"Quantizer",
@@ -267,7 +267,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_QUANTIZER as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"tile-cols",
"Tile Cols",
"Tile Cols",
@@ -276,7 +276,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_TILE_COLS as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"tile-rows",
"Tile Rows",
"Tile Rows",
@@ -285,7 +285,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_TILE_ROWS as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"tiles",
"Tiles",
"Tiles",
@@ -294,7 +294,7 @@ impl ObjectImpl for Rav1Enc {
DEFAULT_TILES as u32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_uint(
+ glib::ParamSpecUInt::new(
"threads",
"Threads",
"Threads",
diff --git a/video/rspng/src/pngenc/imp.rs b/video/rspng/src/pngenc/imp.rs
index 09491b502..15c18b6d9 100644
--- a/video/rspng/src/pngenc/imp.rs
+++ b/video/rspng/src/pngenc/imp.rs
@@ -175,7 +175,7 @@ impl ObjectImpl for PngEncoder {
fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"compression-level",
"Compression level",
"Selects the compression algorithm to use",
@@ -183,7 +183,7 @@ impl ObjectImpl for PngEncoder {
DEFAULT_COMPRESSION_LEVEL as i32,
glib::ParamFlags::READWRITE | gst::PARAM_FLAG_MUTABLE_READY,
),
- glib::ParamSpec::new_enum(
+ glib::ParamSpecEnum::new(
"filter",
"Filter",
"Selects the filter type to applied",