Compare two caps with gst_caps_is_equal and fail unless they are equal.
first caps to compare
second caps to compare