X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=f1fdba178f0a773d28a2286dae9eee133c29e929;hp=f43fe91789d21d109c0adf407a0b7e951201ca39;hb=f60efc0e475b3c2fca3b2afc584615f6c482c9e7;hpb=3b565cdcacfd6cb8d969d11ca041508af1b593b6 diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index f43fe917..f1fdba17 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -699,6 +699,9 @@ void ctf_packet_seek(struct stream_pos *stream_pos, size_t index, int whence) break; } case SEEK_SET: + packet_index = &g_array_index(pos->packet_cycles_index, + struct packet_index, index); + pos->last_events_discarded = packet_index->events_discarded; pos->cur_index = index; file_stream->parent.prev_real_timestamp = 0; file_stream->parent.prev_real_timestamp_end = 0;