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
diff options
context:
space:
mode:
authorVivia Nikolaidou <vivia@ahiru.eu>2022-10-14 17:32:43 +0300
committerVivia Nikolaidou <vivia@ahiru.eu>2022-10-14 18:21:28 +0300
commit9b1361b538ad2c214012571a22d0c871eb75f805 (patch)
tree1f0579551f4257b139ec0ca01a72232428436043 /video
parent0ab965335ff268048abc9b90845716ff814b7ef7 (diff)
plugins: Use .into() instead of gst::Fraction::new() where applicable
Diffstat (limited to 'video')
-rw-r--r--video/cdg/src/cdgdec/imp.rs2
-rw-r--r--video/gif/src/gifenc/imp.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/video/cdg/src/cdgdec/imp.rs b/video/cdg/src/cdgdec/imp.rs
index 6656bc53..141002a4 100644
--- a/video/cdg/src/cdgdec/imp.rs
+++ b/video/cdg/src/cdgdec/imp.rs
@@ -70,7 +70,7 @@ impl ElementImpl for CdgDec {
.format(gst_video::VideoFormat::Rgba)
.width(CDG_WIDTH as i32)
.height(CDG_HEIGHT as i32)
- .framerate(gst::Fraction::new(0, 1))
+ .framerate((0, 1).into())
.build();
let src_pad_template = gst::PadTemplate::new(
"src",
diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs
index c7a6617c..64435a50 100644
--- a/video/gif/src/gifenc/imp.rs
+++ b/video/gif/src/gifenc/imp.rs
@@ -218,7 +218,7 @@ impl ElementImpl for GifEnc {
let sink_caps = gst_video::VideoCapsBuilder::new()
.format_list([VideoFormat::Rgb, VideoFormat::Rgba])
// frame-delay timing in gif is a multiple of 10ms -> max 100fps
- .framerate_range(gst::Fraction::new(1, 1)..gst::Fraction::new(100, 1))
+ .framerate_range(gst::Fraction::from(1)..gst::Fraction::from(100))
.build();
let sink_pad_template = gst::PadTemplate::new(
"sink",