X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=28be4fd0cad21357a105f9c4a6984fd7e86f5b7f;hp=6e45ea3612f603664cbee66fb5d0d90e512f215a;hb=5e2eb0aebe6dd62c86d2b96030cb1ba3a0793bec;hpb=39592eae8e476dbb016e2b09ef75f4a7b8cc151d diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 6e45ea36..28be4fd0 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -156,14 +156,17 @@ int ctf_read_event(struct stream_pos *ppos, struct ctf_stream *stream) } /* lookup timestamp */ + stream->has_timestamp = 0; integer_definition = lookup_integer(&stream->stream_event_header->p, "timestamp", FALSE); if (integer_definition) { ctf_update_timestamp(stream, integer_definition); + stream->has_timestamp = 1; } else { if (variant) { integer_definition = lookup_integer(variant, "timestamp", FALSE); if (integer_definition) { ctf_update_timestamp(stream, integer_definition); + stream->has_timestamp = 1; } } }