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[] = {
"Start at 0 running time (default)", "zero"},
"Start at first observed input running time", "first"},
"Set start time with start-time property", "set"},
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