mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
glcolorconvert: Fix caps negotiation with upstream DMABuf
The uninitialized texture target was leading to a NULL texture-target string added to the output caps. Fixes #3519 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6805>
This commit is contained in:
parent
41f8276c2b
commit
1c87cda56d
1 changed files with 2 additions and 2 deletions
|
@ -1796,7 +1796,7 @@ gst_gl_color_convert_fixate_format_target (GstCaps * caps, GstCaps * result)
|
|||
const GstVideoFormatInfo *in_info, *out_info = NULL;
|
||||
const GValue *targets;
|
||||
guint targets_mask = 0;
|
||||
GstGLTextureTarget target;
|
||||
GstGLTextureTarget target = GST_GL_TEXTURE_TARGET_NONE;
|
||||
gint min_loss = G_MAXINT;
|
||||
guint i, capslen;
|
||||
|
||||
|
@ -1860,7 +1860,7 @@ gst_gl_color_convert_fixate_format_target (GstCaps * caps, GstCaps * result)
|
|||
if (out_info)
|
||||
gst_structure_set (outs, "format", G_TYPE_STRING,
|
||||
GST_VIDEO_FORMAT_INFO_NAME (out_info), NULL);
|
||||
if (target)
|
||||
if (target != GST_GL_TEXTURE_TARGET_NONE)
|
||||
gst_structure_set (outs, "texture-target", G_TYPE_STRING,
|
||||
gst_gl_texture_target_to_string (target), NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue