Commit a0bc2455 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

matroska: do not try to call gst_pad_query_default on a NULL pad

gst_matroska_parse_query can be called explicitely with a NULL pad.
If we reach this point with a NULL pad, fail the query.

Coverity 1139715
parent 39158840
......@@ -1046,7 +1046,8 @@ gst_matroska_parse_query (GstMatroskaParse * parse, GstPad * pad,
res = gst_pad_query_default (pad, (GstObject *) parse, query);
if (pad)
res = gst_pad_query_default (pad, (GstObject *) parse, query);
Markdown is supported
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