src.ctf.lttng-live: make lttng_live_trace::trace a bt2::Trace::Shared
[babeltrace.git] / src / plugins / ctf / lttng-live / data-stream.cpp
index 3e7386f45fd95665455075c839734875eb19fd2e..cf49b7e39a84839646ebadcde026d2bd2e585d68 100644 (file)
@@ -78,11 +78,12 @@ static bt_stream *medop_borrow_stream(bt_stream_class *stream_class, int64_t str
              * LTTng. In these cases, use the viewer_stream_id that
              * is unique for a live viewer session.
              */
-            lttng_live_stream->stream = bt_stream_create_with_id(
-                stream_class, lttng_live_stream->trace->trace, lttng_live_stream->viewer_stream_id);
+            lttng_live_stream->stream =
+                bt_stream_create_with_id(stream_class, lttng_live_stream->trace->trace->libObjPtr(),
+                                         lttng_live_stream->viewer_stream_id);
         } else {
             lttng_live_stream->stream = bt_stream_create_with_id(
-                stream_class, lttng_live_stream->trace->trace, (uint64_t) stream_id);
+                stream_class, lttng_live_stream->trace->trace->libObjPtr(), (uint64_t) stream_id);
         }
 
         if (!lttng_live_stream->stream) {
This page took 0.030634 seconds and 4 git commands to generate.