ir: freeze attributes when freezing an event
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 8 Feb 2016 07:38:25 +0000 (02:38 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 19 Feb 2016 20:57:36 +0000 (15:57 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event.c

index 85edf6942081f7705e81eeded43eb83ac846397b..1e9f2b853bb1478308eca087598f0610d15c7928 100644 (file)
@@ -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;
This page took 0.024625 seconds and 4 git commands to generate.