audioparsers: use ACCEPT_INTERSECT flag
authorWim Taymans <wtaymans@redhat.com>
Tue, 3 Dec 2013 20:41:28 +0000 (21:41 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 3 Dec 2013 21:26:44 +0000 (22:26 +0100)
commite0a5c07e8d404e72654e016fa0a6c88d573f51f1
tree3e0de2b614cfe07fc3229d482cfe20f6644a61a2
parente3f393f7e647d16bb7ba555690f23923747095f7
audioparsers: use ACCEPT_INTERSECT flag

The parser can accept input that is not completely specified. Use the
ACCEPT_INTERSECT flag on the sinkpad to tweak the acceptcaps function to
check for intersection only. This allows us to proxy downstream
constraints while still allowing non-subset caps as input.
We can then also remove the appended template caps workaround.
Make a unit-test to check the new feature.

This reverts commit 26040ee38cb9e7c42f3d9a0282b3e5cace7ca42d

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=705024
gst/audioparsers/gstaacparse.c
gst/audioparsers/gstac3parse.c
gst/audioparsers/gstamrparse.c
gst/audioparsers/gstdcaparse.c
gst/audioparsers/gstflacparse.c
gst/audioparsers/gstmpegaudioparse.c
gst/audioparsers/gstsbcparse.c
gst/audioparsers/gstwavpackparse.c
tests/check/elements/aacparse.c