pad: add ACCEPT_INTERCEPT flag
authorWim Taymans <wtaymans@redhat.com>
Tue, 3 Dec 2013 20:46:19 +0000 (21:46 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 3 Dec 2013 21:28:09 +0000 (22:28 +0100)
commit34db3528792a36e1befdd415c8df0db8b0b1ebb1
tree1d4c32a9bb3a91f438734943ebd96fc53a38311c
parenta90ce304c823ac47f8a31b33a61db826c548d217
pad: add ACCEPT_INTERCEPT flag

Make a new flag on the pad that tweaks the default behaviour of the
accept-caps function. By default it will check for a subset of the
query-caps result but this is not always desirable. The query-caps
result contains all the constraints to make a good caps decision
upstream but sometimes, like for parsers, not all the constrained caps
fields are known upstream and then a subset check would fail. Switching
to an intersection makes this work again.

See https://bugzilla.gnome.org/show_bug.cgi?id=705024
    https://bugzilla.gnome.org/show_bug.cgi?id=677401
gst/gstpad.c
gst/gstpad.h