Fix: Don't increment automatic stream-id twice
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 Mar 2015 20:46:29 +0000 (16:46 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 Mar 2015 20:46:29 +0000 (16:46 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/trace.c

index 0cf3f173a254dc8ab3ba16fce3b360d9d5c0cc6c..78c2f28e87b86c83056bd5cbf91efbed5835b621 100644 (file)
@@ -437,7 +437,7 @@ int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace,
                }
 
                if (_bt_ctf_stream_class_set_id(stream_class,
-                       trace->next_stream_id++)) {
+                       stream_id)) {
                        /* TODO Should retry with a different stream id */
                        ret = -1;
                        goto end;
This page took 0.024454 seconds and 4 git commands to generate.