From 9849f6ffd9a4b165145e5553e1819cc85ec7867e Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 31 Jul 2015 14:22:25 -0400 Subject: [PATCH] ir: bt_ctf_stream_class_set_byte_order(): EC is already frozen 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/stream-class.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/formats/ctf/ir/stream-class.c b/formats/ctf/ir/stream-class.c index 022675e3..d88b6179 100644 --- a/formats/ctf/ir/stream-class.c +++ b/formats/ctf/ir/stream-class.c @@ -668,11 +668,11 @@ int bt_ctf_stream_class_set_byte_order(struct bt_ctf_stream_class *stream_class, /* Set all events' native byte order */ for (i = 0; i < stream_class->event_classes->len; i++) { - bt_ctf_event_class_set_native_byte_order( - g_ptr_array_index(stream_class->event_classes, i), + struct bt_ctf_event_class *event_class; + + event_class = g_ptr_array_index(stream_class->event_classes, i); + bt_ctf_event_class_set_native_byte_order(event_class, stream_class->byte_order); - bt_ctf_event_class_freeze( - g_ptr_array_index(stream_class->event_classes, i)); } end: return ret; -- 2.34.1