- }
-
- if (notit->state == STATE_DSCOPE_STREAM_EVENT_CONTEXT_BEGIN) {
- /*
- * Beginning of event's stream event context is
- * only valid if the packet is not supposed to
- * have a specific size (whole packet sequence
- * has in fact only one packet), and there's no
- * event header.
- */
- if (notit->cur_packet_size == -1 && !eh_ft) {
- goto good_state;
- }
- }
-
- if (!notit->meta.event_class) {
- goto bad_state;
- }
-
- ec_ft = bt_event_class_get_context_type(
- notit->meta.event_class);
-
- if (notit->state == STATE_DSCOPE_EVENT_CONTEXT_BEGIN) {
- /*
- * Beginning of event's context is only valid if
- * the packet is not supposed to have a specific
- * size (whole packet sequence has in fact only
- * one packet), and there's no event header and
- * no stream event context.
- */
- if (notit->cur_packet_size == -1 && !eh_ft && !sec_ft) {
- goto good_state;