BT_PUT(notit->meta.stream_class);
- // TODO: get by ID
- notit->meta.stream_class = bt_ctf_trace_get_stream_class(
+ notit->meta.stream_class = bt_ctf_trace_get_stream_class_by_id(
notit->meta.trace, stream_id);
if (!notit->meta.stream_class) {
PERR("Cannot find stream class with ID %" PRIu64 "\n",
{
enum bt_ctf_notif_iter_status status;
- status = set_current_packet_content_sizes(notit);
- if (status != BT_CTF_NOTIF_ITER_STATUS_OK) {
- PERR("Failed to set current packet and content sizes\n");
- goto end;
- }
-
status = set_current_event_class(notit);
if (status != BT_CTF_NOTIF_ITER_STATUS_OK) {
PERR("Failed to set current event class\n");