From 92e0b525ad88759e43171b82871f32388358dc20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 1 Oct 2017 16:02:29 +0200 Subject: [PATCH] Fix build of unit tests --- gstreamer-audio/src/audio_format_info.rs | 4 ++-- gstreamer-video/src/video_info.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index 88386e141..2802af4f1 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -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); } diff --git a/gstreamer-video/src/video_info.rs b/gstreamer-video/src/video_info.rs index 5bbf66789..adf148fa0 100644 --- a/gstreamer-video/src/video_info.rs +++ b/gstreamer-video/src/video_info.rs @@ -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();