+ /*
+ * Resolve the event's sequence length and variant tags if the
+ * stream is already associated with a trace. Otherwise, this
+ * validation will be performed once the stream is registered
+ * to a trace.
+ */
+ if (stream_class->trace) {
+ ret = bt_ctf_event_class_resolve_types(event_class,
+ stream_class->trace, stream_class);
+ if (ret) {
+ goto end;
+ }
+ }
+