Fix: packet_seek is local to plugins, but can be overridden
[babeltrace.git] / formats / ctf / ctf.c
index 51a87083f10cd82c67403be898edff8277decf3a..5911b19d25cdaa5f45735893a0771af1fbf42b6a 100644 (file)
@@ -1384,6 +1384,12 @@ struct trace_descriptor *ctf_open_trace(const char *path, int flags,
        struct ctf_trace *td;
        int ret;
 
+       /*
+        * If packet_seek is NULL, we provide our default version.
+        */
+       if (!packet_seek)
+               packet_seek = ctf_packet_seek;
+
        td = g_new0(struct ctf_trace, 1);
 
        switch (flags & O_ACCMODE) {
This page took 0.022358 seconds and 4 git commands to generate.