mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
Fix build of unit tests
This commit is contained in:
parent
19c5556239
commit
92e0b525ad
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue