mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
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. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5941>
This commit is contained in:
parent
c9c7e83a78
commit
16bace45f0
1 changed files with 1 additions and 1 deletions
|
@ -1280,7 +1280,7 @@ gst_gl_color_convert_transform_caps (GstGLContext * context,
|
|||
GstPadDirection direction, GstCaps * caps, GstCaps * filter)
|
||||
{
|
||||
caps = gst_gl_color_convert_caps_transform_format_info (context,
|
||||
direction == GST_PAD_SRC, caps);
|
||||
direction == GST_PAD_SINK, caps);
|
||||
|
||||
if (filter) {
|
||||
GstCaps *tmp;
|
||||
|
|
Loading…
Reference in a new issue