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
This commit is contained in:
Vincent Penquerc'h 2014-05-02 11:39:39 +01:00
parent 3915884017
commit a0bc24558e

View file

@ -1046,7 +1046,8 @@ gst_matroska_parse_query (GstMatroskaParse * parse, GstPad * pad,
break;
}
default:
res = gst_pad_query_default (pad, (GstObject *) parse, query);
if (pad)
res = gst_pad_query_default (pad, (GstObject *) parse, query);
break;
}