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)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:17 +0000 (19:32 +0000)
commitd5cc277601c7fe164f63156ad747542204baf6d5
tree10f10d7e190e44c10d8be3cf5ab1e864de847029
parent356494d96729ba9c8165c1d0a2e4fa0b08ddca7d
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