diff options
author | Jan Schmidt <jan@centricular.com> | 2015-06-11 12:21:08 +1000 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2015-06-11 12:21:08 +1000 |
commit | e57754be9bcf6c8276b1009bd5181b239d75c39b (patch) | |
tree | 5b4dbebe242a526b161a227f89a57a2d378e0a96 /tests | |
parent | 383d8f02be96cd947a309d83869df3a0d882a88d (diff) |
tests: Fix video libs test for multiview GstVideoInfo change
The GstVideoInfo struct was changed late in integrating the
multiview changes, and I forgot to run and fix the unit test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/libs/video.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c index 98b5e2663..5acf115ff 100644 --- a/tests/check/libs/video.c +++ b/tests/check/libs/video.c @@ -819,8 +819,8 @@ GST_START_TEST (test_parse_caps_multiview) gst_video_info_init (&vinfo); gst_video_info_set_format (&vinfo, GST_VIDEO_FORMAT_I420, 320, 240); - vinfo.multiview_mode = modes[i]; - vinfo.multiview_flags = flags[j]; + GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo) = modes[i]; + GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo) = flags[j]; caps = gst_video_info_to_caps (&vinfo); fail_if (caps == NULL); @@ -830,14 +830,15 @@ GST_START_TEST (test_parse_caps_multiview) fail_unless (gst_video_info_from_caps (&vinfo, caps)); GST_LOG ("mview mode %d flags %x -> info mode %d flags %x", - modes[i], flags[j], vinfo.multiview_mode, vinfo.multiview_flags); + modes[i], flags[j], GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo), + GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo)); - fail_unless (vinfo.multiview_mode == modes[i], + fail_unless (GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo) == modes[i], "Expected multiview mode %d got mode %d", modes[i], - vinfo.multiview_mode); - fail_unless (vinfo.multiview_flags == flags[j], + GST_VIDEO_INFO_MULTIVIEW_MODE (&vinfo)); + fail_unless (GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo) == flags[j], "Expected multiview flags 0x%x got 0x%x", flags[j], - vinfo.multiview_flags); + GST_VIDEO_INFO_MULTIVIEW_FLAGS (&vinfo)); gst_caps_unref (caps); } |