src.ctf.lttng-live: make lttng_live_trace::trace a bt2::Trace::Shared
[babeltrace.git] / src / plugins / ctf / lttng-live / metadata.cpp
index 49bdf6888c8bd4a9a25614d9445a26e94dcc273e..7f4bc76813970cd2447f80aa876dc2da3b05d56a 100644 (file)
@@ -209,12 +209,12 @@ enum lttng_live_iterator_status lttng_live_metadata_update(struct lttng_live_tra
                 ctf_metadata_decoder_borrow_ctf_trace_class(metadata->decoder.get());
 
             trace->trace_class = ctf_metadata_decoder_get_ir_trace_class(metadata->decoder.get());
-            trace->trace = bt_trace_create(trace->trace_class->libObjPtr());
+            trace->trace = trace->trace_class->instantiate();
             if (!trace->trace) {
                 BT_CPPLOGE_APPEND_CAUSE_SPEC(metadata->logger, "Failed to create bt_trace");
                 goto error;
             }
-            if (ctf_trace_class_configure_ir_trace(tc, trace->trace)) {
+            if (ctf_trace_class_configure_ir_trace(tc, trace->trace->libObjPtr())) {
                 BT_CPPLOGE_APPEND_CAUSE_SPEC(metadata->logger,
                                              "Failed to configure ctf trace class");
                 goto error;
This page took 0.022679 seconds and 4 git commands to generate.