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:
parent
3915884017
commit
a0bc24558e
@ -1046,6 +1046,7 @@ gst_matroska_parse_query (GstMatroskaParse * parse, GstPad * pad,
|
||||
break;
|
||||
}
|
||||
default:
|
||||
if (pad)
|
||||
res = gst_pad_query_default (pad, (GstObject *) parse, query);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user