Move stream_id to struct ctf_stream
[babeltrace.git] / formats / ctf / ctf.c
index b02ef2a23b62949c91f0629e36dce2dc2e0cc7cb..80f726aca7701cb699e2a221389dce2af759adde 100644 (file)
@@ -881,12 +881,12 @@ int create_stream_packet_index(struct ctf_trace *td,
                        }
                }
 
-               if (!first_packet && file_stream->stream_id != stream_id) {
+               if (!first_packet && file_stream->stream.stream_id != stream_id) {
                        fprintf(stdout, "[error] Stream ID is changing within a stream.\n");
                        return -EINVAL;
                }
                if (first_packet) {
-                       file_stream->stream_id = stream_id;
+                       file_stream->stream.stream_id = stream_id;
                        if (stream_id >= td->streams->len) {
                                fprintf(stdout, "[error] Stream %" PRIu64 " is not declared in metadata.\n", stream_id);
                                return -EINVAL;
This page took 0.023449 seconds and 4 git commands to generate.