diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-10-14 17:32:43 +0300 |
---|---|---|
committer | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-10-14 18:21:28 +0300 |
commit | 9b1361b538ad2c214012571a22d0c871eb75f805 (patch) | |
tree | 1f0579551f4257b139ec0ca01a72232428436043 /generic | |
parent | 0ab965335ff268048abc9b90845716ff814b7ef7 (diff) |
plugins: Use .into() instead of gst::Fraction::new() where applicable
Diffstat (limited to 'generic')
-rw-r--r-- | generic/fmp4/examples/hls_live.rs | 2 | ||||
-rw-r--r-- | generic/fmp4/examples/hls_vod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/fmp4/examples/hls_live.rs b/generic/fmp4/examples/hls_live.rs index 275ac08f8..624a317a9 100644 --- a/generic/fmp4/examples/hls_live.rs +++ b/generic/fmp4/examples/hls_live.rs @@ -430,7 +430,7 @@ impl VideoStream { .format(gst_video::VideoFormat::I420) .width(self.width as i32) .height(self.height as i32) - .framerate(gst::Fraction::new(30, 1)) + .framerate(30.into()) .build(), ); diff --git a/generic/fmp4/examples/hls_vod.rs b/generic/fmp4/examples/hls_vod.rs index 0a7aa720a..c818d9d6f 100644 --- a/generic/fmp4/examples/hls_vod.rs +++ b/generic/fmp4/examples/hls_vod.rs @@ -325,7 +325,7 @@ impl VideoStream { .format(gst_video::VideoFormat::I420) .width(self.width as i32) .height(self.height as i32) - .framerate(gst::Fraction::new(30, 1)) + .framerate(30.into()) .build(), ); |