From 3b9ff1245bb65a4ee94ea193e3fe28d2cb342224 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 22 Mar 2017 13:35:32 -0400 Subject: [PATCH] array/fraction: In param types, use get_type() function directly The GST_TYPE macro points to global variables initialized by the first call to get_type. This is not an issue if you call gst_init() but unfortunatly pygi will need to acces the param type before init can be called. This removes an assertion. --- gst/gstparamspecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstparamspecs.c b/gst/gstparamspecs.c index 8882062..66de3bd 100644 --- a/gst/gstparamspecs.c +++ b/gst/gstparamspecs.c @@ -138,7 +138,7 @@ gst_param_spec_fraction_get_type (void) _gst_param_fraction_validate, /* value_validate */ _gst_param_fraction_values_cmp, /* values_cmp */ }; - pspec_info.value_type = GST_TYPE_FRACTION; + pspec_info.value_type = gst_fraction_get_type (); type = g_param_type_register_static ("GstParamFraction", &pspec_info); g_once_init_leave (&gst_faction_type, type); } -- 2.7.4