projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Create stream after adding its stream class to a trace
[babeltrace.git]
/
formats
/
ctf
/
ir
/
trace.c
diff --git
a/formats/ctf/ir/trace.c
b/formats/ctf/ir/trace.c
index 158f2b8bbc2e6d13ea8555ecb95a8cff0011d306..d911dfd69946029e8078814a4a94ac30f2ca1af1 100644
(file)
--- a/
formats/ctf/ir/trace.c
+++ b/
formats/ctf/ir/trace.c
@@
-156,11
+156,6
@@
struct bt_ctf_stream *bt_ctf_trace_create_stream(struct bt_ctf_trace *trace,
goto error;
}
goto error;
}
- stream = bt_ctf_stream_create(stream_class, trace);
- if (!stream) {
- goto error;
- }
-
for (i = 0; i < trace->stream_classes->len; i++) {
if (trace->stream_classes->pdata[i] == stream_class) {
stream_class_found = 1;
for (i = 0; i < trace->stream_classes->len; i++) {
if (trace->stream_classes->pdata[i] == stream_class) {
stream_class_found = 1;
@@
-174,6
+169,11
@@
struct bt_ctf_stream *bt_ctf_trace_create_stream(struct bt_ctf_trace *trace,
}
}
}
}
+ stream = bt_ctf_stream_create(stream_class, trace);
+ if (!stream) {
+ goto error;
+ }
+
bt_ctf_stream_get(stream);
g_ptr_array_add(trace->streams, stream);
bt_ctf_stream_get(stream);
g_ptr_array_add(trace->streams, stream);
This page took
0.02392 seconds
and
4
git commands to generate.