X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Futils%2Fmuxer%2Fmuxer.c;h=700789520fee6d2ea2df02a5da90a708a3106aa9;hb=2c091c0465f433cc37e0042254c9132bac70a181;hp=032fef41be05dac7bbe47874a839007fc28894e4;hpb=e3adcdfa2a662e2825b138fa9c5badd808260e34;p=babeltrace.git diff --git a/plugins/utils/muxer/muxer.c b/plugins/utils/muxer/muxer.c index 032fef41..70078952 100644 --- a/plugins/utils/muxer/muxer.c +++ b/plugins/utils/muxer/muxer.c @@ -610,7 +610,6 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, { const bt_clock_class *clock_class = NULL; const bt_clock_snapshot *clock_snapshot = NULL; - const bt_event *event = NULL; int ret = 0; const unsigned char *cc_uuid; const char *cc_name; @@ -626,10 +625,8 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, switch (bt_message_get_type(msg)) { case BT_MESSAGE_TYPE_EVENT: - event = bt_message_event_borrow_event_const(msg); - BT_ASSERT(event); - cs_state = bt_event_borrow_default_clock_snapshot_const(event, - &clock_snapshot); + cs_state = bt_message_event_borrow_default_clock_snapshot_const( + msg, &clock_snapshot); break; case BT_MESSAGE_TYPE_INACTIVITY: