tests: caps: fix test_intersect_flagset failure

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
This commit is contained in:
Vineeth TM 2015-06-29 13:57:11 +09:00 committed by Tim-Philipp Müller
parent 1a0bd0a07f
commit 1730038953

View 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);