From de866173e7158c4451c8b582b6856d05993836f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 16 Mar 2015 16:46:29 -0400 Subject: [PATCH] Fix: Don't increment automatic stream-id twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/ctf/ir/trace.c b/formats/ctf/ir/trace.c index 0cf3f173..78c2f28e 100644 --- a/formats/ctf/ir/trace.c +++ b/formats/ctf/ir/trace.c @@ -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; -- 2.34.1