diff --git a/generic/threadshare/examples/standalone/src/imp.rs b/generic/threadshare/examples/standalone/src/imp.rs index c6f9c82b..ba397d2f 100644 --- a/generic/threadshare/examples/standalone/src/imp.rs +++ b/generic/threadshare/examples/standalone/src/imp.rs @@ -266,7 +266,7 @@ impl TestSrc { drop(settings); self.task - .prepare(SrcTask::new(self.instance().clone()), ts_ctx) + .prepare(SrcTask::new(self.obj().clone()), ts_ctx) .block_on()?; debug_or_trace!(CAT, is_main_elem, imp: self, "Prepared"); diff --git a/mux/fmp4/src/fmp4mux/imp.rs b/mux/fmp4/src/fmp4mux/imp.rs index 30f15deb..7ebca194 100644 --- a/mux/fmp4/src/fmp4mux/imp.rs +++ b/mux/fmp4/src/fmp4mux/imp.rs @@ -1830,7 +1830,7 @@ impl ObjectImpl for FMP4Mux { .default_value(DEFAULT_FRAGMENT_DURATION.nseconds()) .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("header-update-mode", DEFAULT_HEADER_UPDATE_MODE) + glib::ParamSpecEnum::builder_with_default("header-update-mode", DEFAULT_HEADER_UPDATE_MODE) .nick("Header update mode") .blurb("Mode for updating the header at the end of the stream") .mutable_ready() diff --git a/net/aws/src/aws_transcriber/imp.rs b/net/aws/src/aws_transcriber/imp.rs index f05d2376..717104e8 100644 --- a/net/aws/src/aws_transcriber/imp.rs +++ b/net/aws/src/aws_transcriber/imp.rs @@ -1161,7 +1161,7 @@ impl ObjectImpl for Transcriber { .blurb("The ID of the transcription session, must be length 36") .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("results-stability", DEFAULT_STABILITY) + glib::ParamSpecEnum::builder_with_default("results-stability", DEFAULT_STABILITY) .nick("Results stability") .blurb("Defines how fast results should stabilize") .mutable_ready() @@ -1188,7 +1188,7 @@ impl ObjectImpl for Transcriber { for more information") .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("vocabulary-filter-method", DEFAULT_VOCABULARY_FILTER_METHOD) + glib::ParamSpecEnum::builder_with_default("vocabulary-filter-method", DEFAULT_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") .mutable_ready() diff --git a/net/aws/src/s3sink/imp.rs b/net/aws/src/s3sink/imp.rs index 9a25e63b..0f32aafe 100644 --- a/net/aws/src/s3sink/imp.rs +++ b/net/aws/src/s3sink/imp.rs @@ -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.") .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("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") .blurb("Do nothing, abort or complete a multipart upload request on error") .mutable_ready() diff --git a/net/hlssink3/src/imp.rs b/net/hlssink3/src/imp.rs index 2fcca82b..96219a81 100644 --- a/net/hlssink3/src/imp.rs +++ b/net/hlssink3/src/imp.rs @@ -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.") .default_value(DEFAULT_PLAYLIST_LENGTH) .build(), - glib::ParamSpecEnum::builder::("playlist-type", DEFAULT_PLAYLIST_TYPE) + glib::ParamSpecEnum::builder_with_default("playlist-type", DEFAULT_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.") .build(), diff --git a/net/ndi/src/ndisrc/imp.rs b/net/ndi/src/ndisrc/imp.rs index a6af974f..69764b8d 100644 --- a/net/ndi/src/ndisrc/imp.rs +++ b/net/ndi/src/ndisrc/imp.rs @@ -147,14 +147,14 @@ impl ObjectImpl for NdiSrc { .maximum(100) .default_value(100) .build(), - glib::ParamSpecEnum::builder::( + glib::ParamSpecEnum::builder_with_default( "color-format", RecvColorFormat::UyvyBgra, ) .nick("Color Format") .blurb("Receive color format") .build(), - glib::ParamSpecEnum::builder::( + glib::ParamSpecEnum::builder_with_default( "timestamp-mode", TimestampMode::ReceiveTimeTimecode, ) diff --git a/net/webrtchttp/src/whepsrc/imp.rs b/net/webrtchttp/src/whepsrc/imp.rs index 1bcc35f6..2ee1ac93 100644 --- a/net/webrtchttp/src/whepsrc/imp.rs +++ b/net/webrtchttp/src/whepsrc/imp.rs @@ -242,7 +242,7 @@ impl ObjectImpl for WhepSrc { .nick("Authorization Token") .blurb("Authentication token to use, will be sent in the HTTP Header as 'Bearer '") .build(), - glib::ParamSpecEnum::builder::("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY) + glib::ParamSpecEnum::builder_with_default("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY) .nick("ICE transport policy") .blurb("The policy to apply for ICE transport") .build(), diff --git a/net/webrtchttp/src/whipsink/imp.rs b/net/webrtchttp/src/whipsink/imp.rs index 237e2132..4f30afa6 100644 --- a/net/webrtchttp/src/whipsink/imp.rs +++ b/net/webrtchttp/src/whipsink/imp.rs @@ -229,7 +229,7 @@ impl ObjectImpl for WhipSink { .blurb("The TURN server of the form turn(s)://username:password@host:port.") .build(), - glib::ParamSpecEnum::builder::("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY) + glib::ParamSpecEnum::builder_with_default("ice-transport-policy", DEFAULT_ICE_TRANSPORT_POLICY) .nick("ICE transport policy") .blurb("The policy to apply for ICE transport") .build(), diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs index e65d2bca..ad3a920d 100644 --- a/tutorial/src/progressbin/imp.rs +++ b/tutorial/src/progressbin/imp.rs @@ -86,7 +86,7 @@ impl ObjectImpl for ProgressBin { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder::("output", DEFAULT_OUTPUT_TYPE) + glib::ParamSpecEnum::builder_with_default("output", DEFAULT_OUTPUT_TYPE) .nick("Output") .blurb("Defines the output type of the progressbin") .mutable_playing() diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs index 378eef13..d31dc487 100644 --- a/utils/fallbackswitch/src/fallbacksrc/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs @@ -286,7 +286,7 @@ impl ObjectImpl for FallbackSrc { .default_value(false) .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("status", Status::Stopped) + glib::ParamSpecEnum::builder_with_default("status", Status::Stopped) .nick("Status") .blurb("Current source status") .read_only() diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs index 059af53d..5a94b287 100644 --- a/video/closedcaption/src/transcriberbin/imp.rs +++ b/video/closedcaption/src/transcriberbin/imp.rs @@ -601,7 +601,7 @@ impl ObjectImpl for TranscriberBin { .default_value(DEFAULT_ACCUMULATE.mseconds() as u32) .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("mode", DEFAULT_MODE) + glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE) .nick("Mode") .blurb("Which closed caption mode to operate in") .mutable_playing() @@ -616,7 +616,7 @@ impl ObjectImpl for TranscriberBin { .blurb("The transcriber element to use") .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("caption-source", DEFAULT_CAPTION_SOURCE) + glib::ParamSpecEnum::builder_with_default("caption-source", DEFAULT_CAPTION_SOURCE) .nick("Caption source") .blurb("Caption source to use. \ If \"Transcription\" or \"Inband\" is selected, the caption meta \ diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index e62e85c5..3cc2a6e6 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -1001,7 +1001,7 @@ impl ObjectImpl for TtToCea608 { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder::("mode", DEFAULT_MODE) + glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE) .nick("Mode") .blurb("Which mode to operate in") .mutable_playing() diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs index d590060b..688213ea 100644 --- a/video/closedcaption/src/tttojson/imp.rs +++ b/video/closedcaption/src/tttojson/imp.rs @@ -223,7 +223,7 @@ impl ObjectImpl for TtToJson { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder::("mode", DEFAULT_MODE) + glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE) .nick("Mode") .blurb("Which mode to operate in") .mutable_ready() diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs index 8d7b3259..fc022515 100644 --- a/video/png/src/pngenc/imp.rs +++ b/video/png/src/pngenc/imp.rs @@ -67,7 +67,7 @@ impl ObjectImpl for PngEncoder { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder::( + glib::ParamSpecEnum::builder_with_default( "compression-level", DEFAULT_COMPRESSION_LEVEL, ) @@ -75,7 +75,7 @@ impl ObjectImpl for PngEncoder { .blurb("Selects the compression algorithm to use") .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("filter", DEFAULT_FILTER_TYPE) + glib::ParamSpecEnum::builder_with_default("filter", DEFAULT_FILTER_TYPE) .nick("Filter") .blurb("Selects the filter type to applied") .mutable_ready() diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs index 08701ee8..14f7148b 100644 --- a/video/rav1e/src/rav1enc/imp.rs +++ b/video/rav1e/src/rav1enc/imp.rs @@ -321,7 +321,7 @@ impl ObjectImpl for Rav1Enc { .default_value(DEFAULT_RDO_LOOKAHEAD_FRAMES) .mutable_ready() .build(), - glib::ParamSpecEnum::builder::("tune", DEFAULT_TUNE) + glib::ParamSpecEnum::builder_with_default("tune", DEFAULT_TUNE) .nick("Tune") .blurb("Tune") .mutable_ready() diff --git a/video/videofx/src/videocompare/imp.rs b/video/videofx/src/videocompare/imp.rs index 508d6f3b..4480ee31 100644 --- a/video/videofx/src/videocompare/imp.rs +++ b/video/videofx/src/videocompare/imp.rs @@ -75,7 +75,7 @@ impl ObjectImpl for VideoCompare { fn properties() -> &'static [glib::ParamSpec] { static PROPERTIES: Lazy> = Lazy::new(|| { vec![ - glib::ParamSpecEnum::builder::("hash-algo", DEFAULT_HASH_ALGO) + glib::ParamSpecEnum::builder_with_default("hash-algo", DEFAULT_HASH_ALGO) .nick("Hashing Algorithm") .blurb("Which hashing algorithm to use for image comparisons") .mutable_ready()