X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fnotification%2Fpacket.c;h=8e02201d4539038b5a995da8557ebe6a8dcae6d7;hb=56e18c4ce186892c36d7f2cb5078087425e60134;hp=c5c6a6e5afff3e1b3f7da70e8302e909960268e9;hpb=f0010051db62783ef057e8a6b625d6b4444671c2;p=babeltrace.git diff --git a/lib/graph/notification/packet.c b/lib/graph/notification/packet.c index c5c6a6e5..8e02201d 100644 --- a/lib/graph/notification/packet.c +++ b/lib/graph/notification/packet.c @@ -28,11 +28,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include @@ -69,7 +69,7 @@ struct bt_notification *bt_notification_packet_begin_create( struct bt_private_connection_private_notification_iterator *notif_iter, struct bt_packet *packet) { - struct bt_notification_packet_begin *notification; + struct bt_notification_packet_begin *notification = NULL; struct bt_stream *stream; struct bt_stream_class *stream_class; struct bt_graph *graph; @@ -101,6 +101,7 @@ struct bt_notification *bt_notification_packet_begin_create( notification->packet = packet; bt_object_get_no_null_check_no_parent_check( ¬ification->packet->base); + bt_packet_set_is_frozen(packet, true); BT_LOGD("Created packet beginning notification object: " "packet-addr=%p, stream-addr=%p, stream-name=\"%s\", " "stream-class-addr=%p, stream-class-name=\"%s\", " @@ -189,7 +190,7 @@ struct bt_notification *bt_notification_packet_end_create( struct bt_private_connection_private_notification_iterator *notif_iter, struct bt_packet *packet) { - struct bt_notification_packet_end *notification; + struct bt_notification_packet_end *notification = NULL; struct bt_stream *stream; struct bt_stream_class *stream_class; struct bt_graph *graph; @@ -221,6 +222,7 @@ struct bt_notification *bt_notification_packet_end_create( notification->packet = packet; bt_object_get_no_null_check_no_parent_check( ¬ification->packet->base); + bt_packet_set_is_frozen(packet, true); BT_LOGD("Created packet end notification object: " "packet-addr=%p, stream-addr=%p, stream-name=\"%s\", " "stream-class-addr=%p, stream-class-name=\"%s\", "