From 7c4c65c49f4980084d881962c17ada6da6179b0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 11 May 2015 17:34:06 -0400 Subject: [PATCH] ir: only perform trace freeze if not already frozen 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/formats/ctf/ir/trace.c b/formats/ctf/ir/trace.c index a2046b9d..3fa90aa9 100644 --- a/formats/ctf/ir/trace.c +++ b/formats/ctf/ir/trace.c @@ -497,7 +497,9 @@ int bt_ctf_trace_add_stream_class(struct bt_ctf_trace *trace, } bt_ctf_stream_class_freeze(stream_class); - bt_ctf_trace_freeze(trace); + if (!trace->frozen) { + bt_ctf_trace_freeze(trace); + } end: if (ret) { (void) bt_ctf_stream_class_set_trace(stream_class, NULL); -- 2.34.1