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/net
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 /net
parent288acaa7ccb596e63af47b8ef7b8408a84f973b3 (diff)
Update for glib constructor renames
See https://github.com/gtk-rs/gtk-rs-core/pull/384
Diffstat (limited to 'net')
-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
5 files changed, 40 insertions, 40 deletions
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",