Update for glib API changes

This commit is contained in:
Sebastian Dröge 2023-01-21 18:13:48 +02:00
parent 7cfd570c15
commit 458b2386ed
16 changed files with 20 additions and 20 deletions

View file

@ -266,7 +266,7 @@ impl TestSrc {
drop(settings); drop(settings);
self.task self.task
.prepare(SrcTask::new(self.instance().clone()), ts_ctx) .prepare(SrcTask::new(self.obj().clone()), ts_ctx)
.block_on()?; .block_on()?;
debug_or_trace!(CAT, is_main_elem, imp: self, "Prepared"); debug_or_trace!(CAT, is_main_elem, imp: self, "Prepared");

View file

@ -1830,7 +1830,7 @@ impl ObjectImpl for FMP4Mux {
.default_value(DEFAULT_FRAGMENT_DURATION.nseconds()) .default_value(DEFAULT_FRAGMENT_DURATION.nseconds())
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<super::HeaderUpdateMode>("header-update-mode", DEFAULT_HEADER_UPDATE_MODE) glib::ParamSpecEnum::builder_with_default("header-update-mode", DEFAULT_HEADER_UPDATE_MODE)
.nick("Header update mode") .nick("Header update mode")
.blurb("Mode for updating the header at the end of the stream") .blurb("Mode for updating the header at the end of the stream")
.mutable_ready() .mutable_ready()

View file

@ -1161,7 +1161,7 @@ impl ObjectImpl for Transcriber {
.blurb("The ID of the transcription session, must be length 36") .blurb("The ID of the transcription session, must be length 36")
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<AwsTranscriberResultStability>("results-stability", DEFAULT_STABILITY) glib::ParamSpecEnum::builder_with_default("results-stability", DEFAULT_STABILITY)
.nick("Results stability") .nick("Results stability")
.blurb("Defines how fast results should stabilize") .blurb("Defines how fast results should stabilize")
.mutable_ready() .mutable_ready()
@ -1188,7 +1188,7 @@ impl ObjectImpl for Transcriber {
for more information") for more information")
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<AwsTranscriberVocabularyFilterMethod>("vocabulary-filter-method", DEFAULT_VOCABULARY_FILTER_METHOD) glib::ParamSpecEnum::builder_with_default("vocabulary-filter-method", DEFAULT_VOCABULARY_FILTER_METHOD)
.nick("Vocabulary Filter Method") .nick("Vocabulary Filter Method")
.blurb("Defines how filtered words will be edited, has no effect when vocabulary-filter-name isn't set") .blurb("Defines how filtered words will be edited, has no effect when vocabulary-filter-name isn't set")
.mutable_ready() .mutable_ready()

View file

@ -701,7 +701,7 @@ impl ObjectImpl for S3Sink {
.blurb("A map of metadata to store with the object in S3; field values need to be convertible to strings.") .blurb("A map of metadata to store with the object in S3; field values need to be convertible to strings.")
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<OnError>("on-error", DEFAULT_MULTIPART_UPLOAD_ON_ERROR) glib::ParamSpecEnum::builder_with_default("on-error", DEFAULT_MULTIPART_UPLOAD_ON_ERROR)
.nick("Whether to upload or complete the multipart upload on error") .nick("Whether to upload or complete the multipart upload on error")
.blurb("Do nothing, abort or complete a multipart upload request on error") .blurb("Do nothing, abort or complete a multipart upload request on error")
.mutable_ready() .mutable_ready()

View file

@ -448,7 +448,7 @@ impl ObjectImpl for HlsSink3 {
.blurb("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.") .blurb("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.")
.default_value(DEFAULT_PLAYLIST_LENGTH) .default_value(DEFAULT_PLAYLIST_LENGTH)
.build(), .build(),
glib::ParamSpecEnum::builder::<HlsSink3PlaylistType>("playlist-type", DEFAULT_PLAYLIST_TYPE) glib::ParamSpecEnum::builder_with_default("playlist-type", DEFAULT_PLAYLIST_TYPE)
.nick("Playlist Type") .nick("Playlist Type")
.blurb("The type of the playlist to use. When VOD type is set, the playlist will be live until the pipeline ends execution.") .blurb("The type of the playlist to use. When VOD type is set, the playlist will be live until the pipeline ends execution.")
.build(), .build(),

View file

@ -147,14 +147,14 @@ impl ObjectImpl for NdiSrc {
.maximum(100) .maximum(100)
.default_value(100) .default_value(100)
.build(), .build(),
glib::ParamSpecEnum::builder::<RecvColorFormat>( glib::ParamSpecEnum::builder_with_default(
"color-format", "color-format",
RecvColorFormat::UyvyBgra, RecvColorFormat::UyvyBgra,
) )
.nick("Color Format") .nick("Color Format")
.blurb("Receive color format") .blurb("Receive color format")
.build(), .build(),
glib::ParamSpecEnum::builder::<TimestampMode>( glib::ParamSpecEnum::builder_with_default(
"timestamp-mode", "timestamp-mode",
TimestampMode::ReceiveTimeTimecode, TimestampMode::ReceiveTimeTimecode,
) )

View file

@ -242,7 +242,7 @@ impl ObjectImpl for WhepSrc {
.nick("Authorization Token") .nick("Authorization Token")
.blurb("Authentication token to use, will be sent in the HTTP Header as 'Bearer <auth-token>'") .blurb("Authentication token to use, will be sent in the HTTP Header as 'Bearer <auth-token>'")
.build(), .build(),
glib::ParamSpecEnum::builder::<IceTransportPolicy>("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY) glib::ParamSpecEnum::builder_with_default("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY)
.nick("ICE transport policy") .nick("ICE transport policy")
.blurb("The policy to apply for ICE transport") .blurb("The policy to apply for ICE transport")
.build(), .build(),

View file

@ -229,7 +229,7 @@ impl ObjectImpl for WhipSink {
.blurb("The TURN server of the form turn(s)://username:password@host:port.") .blurb("The TURN server of the form turn(s)://username:password@host:port.")
.build(), .build(),
glib::ParamSpecEnum::builder::<IceTransportPolicy>("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY) glib::ParamSpecEnum::builder_with_default("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY)
.nick("ICE transport policy") .nick("ICE transport policy")
.blurb("The policy to apply for ICE transport") .blurb("The policy to apply for ICE transport")
.build(), .build(),

View file

@ -86,7 +86,7 @@ impl ObjectImpl for ProgressBin {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpecEnum::builder::<ProgressBinOutput>("output", DEFAULT_OUTPUT_TYPE) glib::ParamSpecEnum::builder_with_default("output", DEFAULT_OUTPUT_TYPE)
.nick("Output") .nick("Output")
.blurb("Defines the output type of the progressbin") .blurb("Defines the output type of the progressbin")
.mutable_playing() .mutable_playing()

View file

@ -286,7 +286,7 @@ impl ObjectImpl for FallbackSrc {
.default_value(false) .default_value(false)
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<Status>("status", Status::Stopped) glib::ParamSpecEnum::builder_with_default("status", Status::Stopped)
.nick("Status") .nick("Status")
.blurb("Current source status") .blurb("Current source status")
.read_only() .read_only()

View file

@ -601,7 +601,7 @@ impl ObjectImpl for TranscriberBin {
.default_value(DEFAULT_ACCUMULATE.mseconds() as u32) .default_value(DEFAULT_ACCUMULATE.mseconds() as u32)
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE) glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
.nick("Mode") .nick("Mode")
.blurb("Which closed caption mode to operate in") .blurb("Which closed caption mode to operate in")
.mutable_playing() .mutable_playing()
@ -616,7 +616,7 @@ impl ObjectImpl for TranscriberBin {
.blurb("The transcriber element to use") .blurb("The transcriber element to use")
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<CaptionSource>("caption-source", DEFAULT_CAPTION_SOURCE) glib::ParamSpecEnum::builder_with_default("caption-source", DEFAULT_CAPTION_SOURCE)
.nick("Caption source") .nick("Caption source")
.blurb("Caption source to use. \ .blurb("Caption source to use. \
If \"Transcription\" or \"Inband\" is selected, the caption meta \ If \"Transcription\" or \"Inband\" is selected, the caption meta \

View file

@ -1001,7 +1001,7 @@ impl ObjectImpl for TtToCea608 {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE) glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
.nick("Mode") .nick("Mode")
.blurb("Which mode to operate in") .blurb("Which mode to operate in")
.mutable_playing() .mutable_playing()

View file

@ -223,7 +223,7 @@ impl ObjectImpl for TtToJson {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpecEnum::builder::<Cea608Mode>("mode", DEFAULT_MODE) glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
.nick("Mode") .nick("Mode")
.blurb("Which mode to operate in") .blurb("Which mode to operate in")
.mutable_ready() .mutable_ready()

View file

@ -67,7 +67,7 @@ impl ObjectImpl for PngEncoder {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpecEnum::builder::<CompressionLevel>( glib::ParamSpecEnum::builder_with_default(
"compression-level", "compression-level",
DEFAULT_COMPRESSION_LEVEL, DEFAULT_COMPRESSION_LEVEL,
) )
@ -75,7 +75,7 @@ impl ObjectImpl for PngEncoder {
.blurb("Selects the compression algorithm to use") .blurb("Selects the compression algorithm to use")
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<FilterType>("filter", DEFAULT_FILTER_TYPE) glib::ParamSpecEnum::builder_with_default("filter", DEFAULT_FILTER_TYPE)
.nick("Filter") .nick("Filter")
.blurb("Selects the filter type to applied") .blurb("Selects the filter type to applied")
.mutable_ready() .mutable_ready()

View file

@ -321,7 +321,7 @@ impl ObjectImpl for Rav1Enc {
.default_value(DEFAULT_RDO_LOOKAHEAD_FRAMES) .default_value(DEFAULT_RDO_LOOKAHEAD_FRAMES)
.mutable_ready() .mutable_ready()
.build(), .build(),
glib::ParamSpecEnum::builder::<Tune>("tune", DEFAULT_TUNE) glib::ParamSpecEnum::builder_with_default("tune", DEFAULT_TUNE)
.nick("Tune") .nick("Tune")
.blurb("Tune") .blurb("Tune")
.mutable_ready() .mutable_ready()

View file

@ -75,7 +75,7 @@ impl ObjectImpl for VideoCompare {
fn properties() -> &'static [glib::ParamSpec] { fn properties() -> &'static [glib::ParamSpec] {
static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| { static PROPERTIES: Lazy<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![ vec![
glib::ParamSpecEnum::builder::<HashAlgorithm>("hash-algo", DEFAULT_HASH_ALGO) glib::ParamSpecEnum::builder_with_default("hash-algo", DEFAULT_HASH_ALGO)
.nick("Hashing Algorithm") .nick("Hashing Algorithm")
.blurb("Which hashing algorithm to use for image comparisons") .blurb("Which hashing algorithm to use for image comparisons")
.mutable_ready() .mutable_ready()