Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/video/png
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-01-21 19:13:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-01-21 19:13:48 +0300
commit458b2386ed5c3cdfde45b0eab127220f0431bf0d (patch)
treead1ef0925c028d0239f0aeafd065797fd87e48ff /video/png
parent7cfd570c15b9742f7e07e92f97ffc2c623b6791f (diff)
Update for glib API changes
Diffstat (limited to 'video/png')
-rw-r--r--video/png/src/pngenc/imp.rs4
1 files changed, 2 insertions, 2 deletions
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<Vec<glib::ParamSpec>> = Lazy::new(|| {
vec![
- glib::ParamSpecEnum::builder::<CompressionLevel>(
+ 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::<FilterType>("filter", DEFAULT_FILTER_TYPE)
+ glib::ParamSpecEnum::builder_with_default("filter", DEFAULT_FILTER_TYPE)
.nick("Filter")
.blurb("Selects the filter type to applied")
.mutable_ready()