pad: Check for subsets, not non-empty intersections to check if caps are compatible
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Sep 2011 10:19:58 +0000 (12:19 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Sep 2011 10:35:41 +0000 (12:35 +0200)
commit0c5d50207326d74a4805bcd898bfac887540f12b
tree9c874f581290bf4ce6115554ff13184e4e47f098
parent185ab7f325da9b8ff3f9c9e16b47d2bea2fc3636
pad: Check for subsets, not non-empty intersections to check if caps are compatible

Pads should only accept caps that are a subset of the pad caps, e.g.
they should accept only caps that have a non-empty intersection and
at least all fields of the pad caps.

Without this a pad that wants for example
  "video/x-h264,stream-format=byte-stream"
will be happy to accept
  "video/x-h264".
gst/gstpad.c