From: Jérémie Galarneau Date: Mon, 11 May 2015 21:34:06 +0000 (-0400) Subject: ir: only perform trace freeze if not already frozen X-Git-Tag: v2.0.0-pre1~1242 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7c4c65c49f4980084d881962c17ada6da6179b0b;p=babeltrace.git ir: only perform trace freeze if not already frozen Signed-off-by: Jérémie Galarneau --- 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);