tests: caps: fix test_intersect_flagset failure
authorVineeth TM <vineeth.tm@samsung.com>
Mon, 29 Jun 2015 04:57:11 +0000 (13:57 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 29 Jun 2015 12:47:31 +0000 (13:47 +0100)
test_intersect_flagset fails because when caps is being
created, flags and mask are being cast to uint64 while
they should be uint. This results in invalid memory access
or a segfault.

https://bugzilla.gnome.org/show_bug.cgi?id=751628

tests/check/gst/gstcaps.c

index b05ef58..80aa055 100644 (file)
@@ -975,7 +975,7 @@ GST_START_TEST (test_intersect_flagset)
       GST_SEEK_FLAG_TRICKMODE_NO_AUDIO;
 
   c1 = gst_caps_new_simple ("test/x-caps", "field", test_flagset_type,
-      (guint64) (test_flags), (guint64) (test_mask), NULL);
+      test_flags, test_mask, NULL);
 
   test_string = gst_caps_to_string (c1);
   fail_if (test_string == NULL);