* used in connection with g_object_class_install_property() in a GObjects's
* instance_init function.
*
- * Returns: (transfer full): a newly created parameter specification
+ * Returns: (transfer full) (nullable): a newly created parameter specification
*/
GParamSpec *
gst_param_spec_fraction (const gchar * name, const gchar * nick,
* GObjects's instance_init function.
*
* Returns: (transfer full): a newly created parameter specification
+ *
+ * Since: 1.14
*/
GParamSpec *
{
GstParamSpecArray *aspec;
- if (element_spec)
- g_return_val_if_fail (G_IS_PARAM_SPEC (element_spec), NULL);
+ g_return_val_if_fail (element_spec == NULL
+ || G_IS_PARAM_SPEC (element_spec), NULL);
aspec = g_param_spec_internal (GST_TYPE_PARAM_ARRAY_LIST,
name, nick, blurb, flags);