mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-02 02:03:54 +00:00
scenario: Do not dereference NULL pointer
This commit is contained in:
parent
8498861a28
commit
aea1082116
1 changed files with 2 additions and 1 deletions
|
@ -2922,7 +2922,8 @@ gst_validate_action_default_prepare_func (GstValidateAction * action)
|
||||||
gst_validate_structure_resolve_variables (action->structure,
|
gst_validate_structure_resolve_variables (action->structure,
|
||||||
scenario->priv->vars);
|
scenario->priv->vars);
|
||||||
for (i = 0; type->parameters[i].name; i++) {
|
for (i = 0; type->parameters[i].name; i++) {
|
||||||
if (g_str_has_suffix (type->parameters[i].types, "(GstClockTime)"))
|
if (type->parameters[i].types &&
|
||||||
|
g_str_has_suffix (type->parameters[i].types, "(GstClockTime)"))
|
||||||
gst_validate_action_get_clocktime (scenario, action,
|
gst_validate_action_get_clocktime (scenario, action,
|
||||||
type->parameters[i].name, &tmp);
|
type->parameters[i].name, &tmp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue