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:
Stefan Kost 2010-11-18 16:31:30 +02:00
parent d2d42082c3
commit 20c173bada

View file

@ -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;
}