X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=0e425bbb0b4d2abacc4a9d5c0297ebfb7278ab0e;hp=c343f18366acb0ed22517957fb1e4608e2683a99;hb=3217ac37d3dc40c6e1f87949b23f107fef471fc4;hpb=fca049584ae1bcd9b0859924f982c6a0f6c7388f diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index c343f183..0e425bbb 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -396,10 +396,12 @@ void ctf_move_pos_slow(struct ctf_stream_pos *pos, size_t offset, int whence) { uint32_t events_discarded_diff; - /* Print lost event count */ + /* For printing discarded event count */ index = &g_array_index(pos->packet_index, struct packet_index, pos->cur_index); events_discarded_diff = index->events_discarded; + file_stream->parent.prev_timestamp_end = + index->timestamp_end; if (pos->cur_index > 0) { index = &g_array_index(pos->packet_index, struct packet_index, @@ -419,6 +421,7 @@ void ctf_move_pos_slow(struct ctf_stream_pos *pos, size_t offset, int whence) assert(offset == 0); /* only seek supported for now */ pos->cur_index = 0; file_stream->parent.prev_timestamp = 0; + file_stream->parent.prev_timestamp_end = 0; break; default: assert(0);