Skip to content

Commit

Permalink
glcolorconver: Return empty caps in transform_caps if fails.
Browse files Browse the repository at this point in the history
We should not return a NULL in transform_caps() function. The NULL
will generate a assert of:
  "transform_caps returned caps which are not a real subset of the
   filter caps"
in transform base class.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/922>
  • Loading branch information
HeJunyan committed Dec 3, 2020
1 parent 1146a7e commit f7ea6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/gl/gstglcolorconvertelement.c
Expand Up @@ -149,7 +149,7 @@ gst_gl_color_convert_element_transform_caps (GstBaseTransform * bt,
GstCaps *ret;

if (base_filter->display && !gst_gl_base_filter_find_gl_context (base_filter))
return NULL;
return gst_caps_new_empty ();

context = gst_gl_base_filter_get_gl_context (base_filter);

Expand Down

0 comments on commit f7ea6d9

Please sign in to comment.