X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=7b53dd6b188a51837aacd01123f55b3d1e224eee;hp=6bb31e55f4efb31346fcdc8ee14457565734a619;hb=7ec7896938417f9bc429a890199a0db219c43a8e;hpb=f18fbdeb7c7777d5473ab12efd828ce82b06948e diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 6bb31e55..7b53dd6b 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1655,7 +1655,7 @@ int ctf_open_file_stream_read(struct ctf_trace *td, const char *path, int flags, /* * For now, only a single clock per trace is supported. */ - file_stream->parent.current_clock = td->single_clock; + file_stream->parent.current_clock = td->parent.single_clock; ret = create_stream_packet_index(td, file_stream); if (ret) goto error_index; @@ -1896,7 +1896,7 @@ int ctf_open_mmap_stream_read(struct ctf_trace *td, /* * For now, only a single clock per trace is supported. */ - file_stream->parent.current_clock = td->single_clock; + file_stream->parent.current_clock = td->parent.single_clock; /* Add stream file to stream class */ g_ptr_array_add(file_stream->parent.stream_class->streams,