- if (!old_clock_class && stream_class->common.clock_class) {
- /*
- * Adding this event class updated the stream class's
- * single clock class: make sure all the events which
- * exist in event pools have an existing clock value for
- * this clock class so that any created event object in
- * the future (from a pool or not) has this clock value
- * available.
- */
- for (i = 0; i < stream_class->common.event_classes->len; i++) {
- struct bt_event_class *event_class =
- stream_class->common.event_classes->pdata[i];
-
- BT_ASSERT(event_class);
- ret = bt_event_class_update_event_pool_clock_values(
- event_class);
- if (ret) {
- goto end;
- }
- }
- }
-