video: format: check for Nv12 instead of P016Be

The latter has been introduced in 1.18 making the test fail with older
gst.
This commit is contained in:
Guillaume Desmottes 2020-06-24 10:00:28 +02:00
parent ac47c7bc1d
commit 03a240cf3f

View file

@ -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());