paramspecs: Use gst_value_array_get_type() for GstParamSpecArray type
authorJan Schmidt <jan@centricular.com>
Fri, 24 Mar 2017 06:53:31 +0000 (17:53 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 24 Mar 2017 06:53:31 +0000 (17:53 +1100)
commit0ff74f8d6df5e7697f407e0db02654d75d1b92de
treea13cdf659e05a4c19c54f97c15a52b647a59f89f
parente571002dcbe78fe8a205c43eae3962f3b8d815ae
paramspecs: Use gst_value_array_get_type() for GstParamSpecArray type

When registering GstParamSpecArray, use the gst_value_array_get_type()
function to get the type, rather than the GST_TYPE_ARRAY macro, which
gets it from the _gst_value_array_type, which is in turn only
initialised during gst_init()

Fixes criticals with (python) bindings that look up all the
types from the gobject-introspection info as soon as they
are imported.

/usr/lib64/python3.5/site-packages/gi/module.py:178: Warning: g_param_type_register_static: assertion 'g_type_name (pspec_info->value_type) != NULL' failed
  g_type = info.get_g_type()
/usr/lib64/python3.5/site-packages/gi/module.py:212: Warning: g_type_get_qdata: assertion 'node != NULL' failed
  type_ = g_type.pytype
/usr/lib64/python3.5/site-packages/gi/module.py:226: Warning: g_type_get_qdata: assertion 'node != NULL' failed
  g_type.pytype = wrapper
/usr/lib64/python3.5/site-packages/gi/module.py:226: Warning: g_type_set_qdata: assertion 'node != NULL' failed
  g_type.pytype = wrapper
gst/gstparamspecs.c