Fix build of unit tests

This commit is contained in:
Sebastian Dröge 2017-10-01 16:02:29 +02:00
parent 19c5556239
commit 92e0b525ad
2 changed files with 3 additions and 3 deletions

View file

@ -336,8 +336,8 @@ mod tests {
let mut unpacked = [0; 16];
let mut output = [0; 8];
info.unpack(::AUDIO_PACK_FLAG_NONE, &mut unpacked, &input);
info.pack(::AUDIO_PACK_FLAG_NONE, &mut output, &unpacked);
info.unpack(::AudioPackFlags::NONE, &mut unpacked, &input);
info.pack(::AudioPackFlags::NONE, &mut output, &unpacked);
assert_eq!(input, output);
}

View file

@ -795,7 +795,7 @@ mod tests {
assert_eq!(info.height(), 240);
assert_eq!(info.fps(), gst::Fraction::new(30, 1));
assert_eq!(info.interlace_mode(), ::VideoInterlaceMode::Progressive);
assert_eq!(info.chroma_site(), ::VIDEO_CHROMA_SITE_MPEG2);
assert_eq!(info.chroma_site(), ::VideoChromaSite::MPEG2);
assert_eq!(info.colorimetry(), "bt709".parse().unwrap());
let caps2 = info.to_caps().unwrap();