mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-16 04:54:12 +00:00
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.
This commit is contained in:
parent
d486074a9c
commit
3b9ff1245b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue