paramspec: Move condition check inside the g_return

It's mostly a debug check and crash avoidance, it's better to
keep all the condition inside the macro.
This commit is contained in:
Nicolas Dufresne 2017-11-10 12:07:28 -05:00
parent 98f4ff8331
commit 7595c38a73

View file

@ -352,8 +352,8 @@ gst_param_spec_array (const gchar * name,
{ {
GstParamSpecArray *aspec; GstParamSpecArray *aspec;
if (element_spec) g_return_val_if_fail (element_spec == NULL
g_return_val_if_fail (G_IS_PARAM_SPEC (element_spec), NULL); || G_IS_PARAM_SPEC (element_spec), NULL);
aspec = g_param_spec_internal (GST_TYPE_PARAM_ARRAY_LIST, aspec = g_param_spec_internal (GST_TYPE_PARAM_ARRAY_LIST,
name, nick, blurb, flags); name, nick, blurb, flags);