}
static
-struct bt_stream *medop_get_stream(
- struct bt_stream_class *stream_class,
+const bt_stream *medop_get_stream(
+ const bt_stream_class *stream_class,
uint64_t stream_id, void *data)
{
struct lttng_live_stream_iterator *lttng_live_stream = data;
BT_ASSERT(!ret);
if (stream->stream) {
- BT_PUT(stream->stream);
+ BT_OBJECT_PUT_REF_AND_RESET(stream->stream);
}
if (stream->notif_iter) {
bt_notif_iter_destroy(stream->notif_iter);
}
g_free(stream->buf);
- BT_PUT(stream->packet_end_notif_queue);
+ BT_OBJECT_PUT_REF_AND_RESET(stream->packet_end_notif_queue);
bt_list_del(&stream->node);
/*
* Ensure we poke the trace metadata in the future, which is