Commit f8b36721 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

video: Fix broken comparison in unit test

libs/video.c:540:50: error: comparison of constant 2 with boolean expression is always false
      [-Werror,-Wtautological-constant-out-of-range-compare]
            && !GST_VIDEO_INFO_N_PLANES (&vinfo) > 2) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
parent 9a20920a
...@@ -537,7 +537,7 @@ GST_START_TEST (test_video_formats) ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment