Commit 44d73efc authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

aggregator: Fix StartTimeSelection enum type registration

Make it thread-safe and use the actual C identifiers for the "name"
field, as otherwise gobject-introspection will fall apart.

Part-of: <!527>
parent 3db98554
Pipeline #158702 waiting for manual action with stages
in 28 seconds
......@@ -96,18 +96,20 @@ gst_aggregator_start_time_selection_get_type (void)
{
static GType gtype = 0;
if (gtype == 0) {
if (g_once_init_enter (&gtype)) {
static const GEnumValue values[] = {
{GST_AGGREGATOR_START_TIME_SELECTION_ZERO,
"Start at 0 running time (default)", "zero"},
"GST_AGGREGATOR_START_TIME_SELECTION_ZERO", "zero"},
{GST_AGGREGATOR_START_TIME_SELECTION_FIRST,
"Start at first observed input running time", "first"},
"GST_AGGREGATOR_START_TIME_SELECTION_FIRST", "first"},
{GST_AGGREGATOR_START_TIME_SELECTION_SET,
"Set start time with start-time property", "set"},
"GST_AGGREGATOR_START_TIME_SELECTION_SET", "set"},
{0, NULL, NULL}
};
GType new_type =
g_enum_register_static ("GstAggregatorStartTimeSelection", values);
gtype = g_enum_register_static ("GstAggregatorStartTimeSelection", values);
g_once_init_leave (&gtype, new_type);
}
return gtype;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment