From 0ff74f8d6df5e7697f407e0db02654d75d1b92de Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 24 Mar 2017 17:53:31 +1100 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstparamspecs.c b/gst/gstparamspecs.c index 8fad46f..61acc7a 100644 --- a/gst/gstparamspecs.c +++ b/gst/gstparamspecs.c @@ -313,7 +313,7 @@ gst_param_spec_array_get_type (void) _gst_param_array_validate, /* value_validate */ _gst_param_array_values_cmp, /* values_cmp */ }; - pspec_info.value_type = GST_TYPE_ARRAY; + pspec_info.value_type = gst_value_array_get_type (); type = g_param_type_register_static ("GstParamArray", &pspec_info); } return type; -- 2.7.4