video: Fix broken comparison in unit test
authorSebastian Dröge <sebastian@centricular.com>
Wed, 21 May 2014 08:40:32 +0000 (10:40 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 21 May 2014 08:40:32 +0000 (10:40 +0200)
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) {
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~

tests/check/libs/video.c

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