video: And check comparison for real

This commit is contained in:
Sebastian Dröge 2014-05-21 10:43:49 +02:00
parent f8b367212d
commit 7bdaa49fa3

View file

@ -537,7 +537,7 @@ GST_START_TEST (test_video_formats)
fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 0), fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 0),
paintinfo.ystride); paintinfo.ystride);
if (!gst_video_format_is_packed (fmt) if (!gst_video_format_is_packed (fmt)
&& GST_VIDEO_INFO_N_PLANES (&vinfo) > 2) { && GST_VIDEO_INFO_N_PLANES (&vinfo) <= 2) {
/* planar */ /* planar */
fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 1), fail_unless_equals_int (GST_VIDEO_INFO_COMP_STRIDE (&vinfo, 1),
paintinfo.ustride); paintinfo.ustride);