[Bug 749445] [patchset] Fix capabilities verification and unit tests as result

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri May 15 15:04:52 PDT 2015


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

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #303441|none                        |rejected
             status|                            |

--- Comment #11 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Review of attachment 303441:
 --> (https://bugzilla.gnome.org/review?bug=749445&attachment=303441)

::: tests/check/gst/gstcaps.c
@@ +295,3 @@
+  c2 = gst_caps_from_string ("video/x-raw, format=(string)YUY2");
+  fail_unless (gst_caps_is_subset (c2, c1));
+  fail_if (gst_caps_is_subset (c1, c2));

And this here is exactly such an example:

c1 is a subset of c2, but c2 is not a subset of c1. c2 has no alignment field,
which means that the alignment field can have any possible value and thus
covers *more* possible caps than c1, which only allows a single value for the
alignment field.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list