From fb88e5256bac24064b374b8f3c7ba77b8d4ac9c6 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 8 Feb 2016 02:38:25 -0500 Subject: [PATCH] ir: freeze attributes when freezing an event MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/event.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/formats/ctf/ir/event.c b/formats/ctf/ir/event.c index 85edf694..1e9f2b85 100644 --- a/formats/ctf/ir/event.c +++ b/formats/ctf/ir/event.c @@ -525,6 +525,10 @@ int bt_ctf_event_class_set_stream_id(struct bt_ctf_event_class *event_class, ret = bt_ctf_attributes_set_field_value(event_class->attributes, "stream_id", obj); + if (event_class->frozen) { + bt_ctf_attributes_freeze(event_class->attributes); + } + end: BT_PUT(obj); return ret; -- 2.34.1