From 03a240cf3f9876a58f50a1835f2ab88497790018 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 24 Jun 2020 10:00:28 +0200 Subject: [PATCH] video: format: check for Nv12 instead of P016Be The latter has been introduced in 1.18 making the test fail with older gst. --- gstreamer-video/src/video_format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer-video/src/video_format.rs b/gstreamer-video/src/video_format.rs index 7adbc8e1d..478eb8935 100644 --- a/gstreamer-video/src/video_format.rs +++ b/gstreamer-video/src/video_format.rs @@ -465,7 +465,7 @@ mod tests { } assert_eq!(count, ::VideoFormat::iter_raw().len()); - assert!(::VideoFormat::iter_raw().any(|f| f == ::VideoFormat::P016Be)); + assert!(::VideoFormat::iter_raw().any(|f| f == ::VideoFormat::Nv12)); assert!(::VideoFormat::iter_raw() .find(|f| *f == ::VideoFormat::Encoded) .is_none());