glcolorconvert: try harder to passthrough
authorAlessandro Decina <alessandro.d@gmail.com>
Thu, 14 Jan 2016 05:00:00 +0000 (16:00 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:14 +0000 (19:32 +0000)
commitc2a6c97a1dc6fda31c076b5fb4d7d048e4d18b38
treea68c90ae544ad7f48f14cbee8d7acdfe024dc734
parent731f9928ddc9890c85939e7002f4b2756aee2b1b
glcolorconvert: try harder to passthrough

This makes a pipeline like:

... ! video/x-raw(memory:GLMemory),format=UYVY ! glcolorconvert !
video/x-raw(memory:GLMemory),format={UYVY, NV12} ! ...

passthrough instead of converting UYVY => NV12. The conversion would happen
before this change since the element (and basetransform) transform the src caps
to format={NV12, UYVY} (since NV12 comes first in the glcolorconvert:src
template) and then the default caps fixate func would fixate to NV12. Blah.

Also there's no need to intersect against the template caps in ::transform_caps
since basetransform does that right after calling the vfunc.
gst-libs/gst/gl/gstglcolorconvert.c