mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
validate:ssim: Avoid dereferencing NULL pointer
CID 1462650 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/192>
This commit is contained in:
parent
66972abafc
commit
eb6c126068
1 changed files with 6 additions and 0 deletions
|
@ -302,6 +302,12 @@ _can_attach (GstValidateOverride * override, GstValidateMonitor * monitor)
|
|||
|
||||
pad = GST_PAD (gst_validate_monitor_get_target (monitor));
|
||||
element = gst_validate_monitor_get_element (monitor);
|
||||
|
||||
if (!element) {
|
||||
GST_INFO_OBJECT (monitor, "Not in an element yet, can't attach");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if ((gst_validate_element_has_klass (element, "Converter") ||
|
||||
gst_validate_element_has_klass (element, "Filter") ||
|
||||
gst_validate_element_has_klass (element, "Decoder")) &&
|
||||
|
|
Loading…
Reference in a new issue