videoconvert: Fix unit test after latest videoconvert changes
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 9 Apr 2013 11:59:34 +0000 (13:59 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 9 Apr 2013 11:59:34 +0000 (13:59 +0200)
tests/check/elements/videoconvert.c

index e2ef031..f82f908 100644 (file)
@@ -56,7 +56,9 @@ check_pad_template (GstPadTemplate * tmpl)
   caps = gst_pad_template_get_caps (tmpl);
 
   /* If this fails, we need to update this unit test */
-  fail_unless_equals_int (gst_caps_get_size (caps), 1);
+  fail_unless_equals_int (gst_caps_get_size (caps), 2);
+  /* Remove the ANY caps features structure */
+  caps = gst_caps_truncate (caps);
   s = gst_caps_get_structure (caps, 0);
 
   fail_unless (gst_structure_has_name (s, "video/x-raw"));