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

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-06-25 19:49:07 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-06-25 19:49:07 +0300
commitf62c11f851d357b131d5246153724d616bfc3451 (patch)
tree9904ca49deb4277fd855cfeef22f560166cde5be /video/rspng
parent392bfc0b1e67ec207c0de6a7298e6b735752dcba (diff)
Update for functions returning a Builder being renamed to builder() instead of new()
And new video event APIs.
Diffstat (limited to 'video/rspng')
-rw-r--r--video/rspng/tests/pngenc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/rspng/tests/pngenc.rs b/video/rspng/tests/pngenc.rs
index de57b1965..4668633c1 100644
--- a/video/rspng/tests/pngenc.rs
+++ b/video/rspng/tests/pngenc.rs
@@ -20,7 +20,7 @@ fn init() {
fn test_png_encode_gray() {
init();
- let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Gray8, 160, 120)
+ let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Gray8, 160, 120)
.fps((30, 1))
.build()
.unwrap();
@@ -31,7 +31,7 @@ fn test_png_encode_gray() {
fn test_png_encode_gray16() {
init();
- let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Gray16Be, 160, 120)
+ let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Gray16Be, 160, 120)
.fps((30, 1))
.build()
.unwrap();
@@ -42,7 +42,7 @@ fn test_png_encode_gray16() {
fn test_png_encode_rgb() {
init();
- let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Rgb, 160, 120)
+ let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Rgb, 160, 120)
.fps((30, 1))
.build()
.unwrap();
@@ -53,7 +53,7 @@ fn test_png_encode_rgb() {
fn test_png_encode_rgba() {
init();
- let video_info = gst_video::VideoInfo::new(gst_video::VideoFormat::Rgba, 160, 120)
+ let video_info = gst_video::VideoInfo::builder(gst_video::VideoFormat::Rgba, 160, 120)
.fps((30, 1))
.build()
.unwrap();