Commit 0086d7b0 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐
Browse files

basetransform: handle gst_base_transform_query_caps() returning NULL

If gst_base_transform_transform_caps() returns NULL, gst_base_transform_query_caps()
will return NULL as well.

Part-of: <gstreamer/gstreamer!2532>
parent 15c69c17
Pipeline #601125 passed with stages
in 31 minutes and 14 seconds
......@@ -1595,6 +1595,10 @@ gst_base_transform_default_query (GstBaseTransform * trans,
gst_query_parse_caps (query, &filter);
caps = gst_base_transform_query_caps (trans, pad, filter);
if (!caps) {
GST_WARNING_OBJECT (pad, "no caps can be handled by this pad");
caps = gst_caps_new_empty ();
gst_query_set_caps_result (query, caps);
gst_caps_unref (caps);
ret = TRUE;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment