mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-16 13:04:18 +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,
|
||||
"direction", direction, "presence", presence, "caps", caps, NULL);
|
||||
|
||||
if (caps)
|
||||
gst_caps_unref (caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
return new;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue