Merge streams in ctf fs component
[babeltrace.git] / plugins / ctf / common / notif-iter / notif-iter.c
index b9c450b48e960f710b50ae640dadf59ca7da6015..56bf9fff49b04e9bbc829d6f2c791840d9bd5f86 100644 (file)
@@ -169,10 +169,10 @@ struct bt_ctf_notif_iter {
        } medium;
 
        /* Current packet size (bits) (-1 if unknown) */
-       size_t cur_packet_size;
+       int64_t cur_packet_size;
 
        /* Current content size (bits) (-1 if unknown) */
-       size_t cur_content_size;
+       int64_t cur_content_size;
 };
 
 static
@@ -579,8 +579,7 @@ enum bt_ctf_notif_iter_status set_current_stream_class(struct bt_ctf_notif_iter
 
        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",
This page took 0.024015 seconds and 4 git commands to generate.