mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
padtemplate: the supplied caps may not be NULL
There is a earlier g_return_val_if_fail check. Also gst_static_pad_template_get does not have such a check.
This commit is contained in:
parent
d2d42082c3
commit
20c173bada
1 changed files with 1 additions and 2 deletions
|
@ -365,8 +365,7 @@ gst_pad_template_new (const gchar * name_template,
|
||||||
"name", name_template, "name-template", name_template,
|
"name", name_template, "name-template", name_template,
|
||||||
"direction", direction, "presence", presence, "caps", caps, NULL);
|
"direction", direction, "presence", presence, "caps", caps, NULL);
|
||||||
|
|
||||||
if (caps)
|
gst_caps_unref (caps);
|
||||||
gst_caps_unref (caps);
|
|
||||||
|
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue