X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=plugins%2Fctf%2Ffs-src%2Fquery.c;h=d7c9824d468bcb94eb5d68821742e97d1ae4b1b6;hp=2a587d7b97715790059b8d5da855241f7c68e9c7;hb=e5be10efe4d5543ba697c7e607ca0a5c33fa3ccb;hpb=70991d9facb103945ab2d25d1c0d6fa5d49136e4 diff --git a/plugins/ctf/fs-src/query.c b/plugins/ctf/fs-src/query.c index 2a587d7b..d7c9824d 100644 --- a/plugins/ctf/fs-src/query.c +++ b/plugins/ctf/fs-src/query.c @@ -229,7 +229,8 @@ end: } static -int add_stream_ids(struct bt_private_value *info, struct bt_stream *stream) +int add_stream_ids(struct bt_private_value *info, + struct bt_stream *stream) { int ret = 0; int64_t stream_class_id, stream_instance_id; @@ -335,7 +336,8 @@ int populate_stream_info(struct ctf_fs_ds_file_group *group, goto end; } - ret = add_stream_ids(group_info, group->stream); + ret = add_stream_ids(group_info, + bt_stream_borrow_from_private(group->stream)); if (ret) { goto end; } @@ -382,7 +384,7 @@ int populate_trace_info(const char *trace_path, const char *trace_name, goto end; } - trace = ctf_fs_trace_create(trace_path, trace_name, NULL, NULL); + trace = ctf_fs_trace_create(trace_path, trace_name, NULL); if (!trace) { BT_LOGE("Failed to create fs trace at \'%s\'", trace_path); ret = -1;