mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue