check: Update video test for GST_VIDEO_FORMAT_ENCODED
authorEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 25 May 2012 14:05:29 +0000 (16:05 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 25 May 2012 14:07:01 +0000 (16:07 +0200)
tests/check/libs/video.c

index 73778c2..db27639 100644 (file)
@@ -396,7 +396,8 @@ GST_START_TEST (test_video_formats_all)
     fail_if (gst_video_format_from_string (fmt_str) ==
         GST_VIDEO_FORMAT_UNKNOWN);
   }
-  fail_unless_equals_int (num, num_formats);
+  /* Take into account GST_VIDEO_FORMAT_ENCODED */
+  fail_unless_equals_int (num, num_formats - 1);
 
   gst_caps_unref (caps);
 }