mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
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:
parent
98f4ff8331
commit
7595c38a73
1 changed files with 2 additions and 2 deletions
|
@ -352,8 +352,8 @@ gst_param_spec_array (const gchar * name,
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue