glfilter: only allow the same src/sink caps when we are in passthrough mode
authorMatthew Waters <matthew@centricular.com>
Wed, 16 Mar 2016 14:52:00 +0000 (01:52 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 16 Mar 2016 15:37:21 +0000 (02:37 +1100)
commit200767ba0eeca9b81ec0341ce477ea19b837f46b
tree1872bc47528c4f15c9b79dfcf7eb98b5cd7268c3
parent993ec87ae6f19f189938bc7cd97a928fec70a2f8
glfilter: only allow the same src/sink caps when we are in passthrough mode

If we are given caps with extra features (like the overlay composition
features), we can only deal with that when we are in passthrough mode.

Previously we were bailing entirely and not allowing passthrough filter elements
with things like textoverlay.

Fixes the following pipeline (assuming glfilter supports passthrough):
gl ! textoverlay ! glfilter ! ... ! glimagesinkelement

https://bugzilla.gnome.org/show_bug.cgi?id=763756
gst-libs/gst/gl/gstglfilter.c