Skip to content

glcolorconvert: Correct transform_caps direction

If GST_PAD_SINK is passed in this means that we're supposed to convert from sink caps to src caps, not the other way around. In other words, if GST_PAD_SINK is passed we're supposed to produce the possible output caps.

Previously this was inverted. This had the effect that glcolorconvert pretended to be able to convert to I420 without glDrawBuffers, which is not possible, and pretended not to be able to convert from I420 without glDrawBuffers, which it always supports.

Merge request reports