From: Philippe Proulx Date: Tue, 12 Mar 2019 18:06:39 +0000 (-0400) Subject: Fix: flt.utils.muxer: use return value (clock class) X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7fc7fc3d8b53c51e9f36e2e7f89fecb327ab02f7;p=deliverable%2Fbabeltrace.git Fix: flt.utils.muxer: use return value (clock class) Signed-off-by: Philippe Proulx --- diff --git a/plugins/utils/muxer/muxer.c b/plugins/utils/muxer/muxer.c index 63a0f6012..91124043f 100644 --- a/plugins/utils/muxer/muxer.c +++ b/plugins/utils/muxer/muxer.c @@ -525,8 +525,9 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, msg, &clock_snapshot); break; case BT_MESSAGE_TYPE_PACKET_BEGINNING: - bt_message_packet_beginning_borrow_stream_class_default_clock_class_const( - msg); + clock_class = + bt_message_packet_beginning_borrow_stream_class_default_clock_class_const( + msg); if (!clock_class) { goto no_clock_snapshot; } @@ -535,8 +536,9 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, msg, &clock_snapshot); break; case BT_MESSAGE_TYPE_PACKET_END: - bt_message_packet_end_borrow_stream_class_default_clock_class_const( - msg); + clock_class = + bt_message_packet_end_borrow_stream_class_default_clock_class_const( + msg); if (!clock_class) { goto no_clock_snapshot; } @@ -545,8 +547,9 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, msg, &clock_snapshot); break; case BT_MESSAGE_TYPE_DISCARDED_EVENTS: - bt_message_discarded_events_borrow_stream_class_default_clock_class_const( - msg); + clock_class = + bt_message_discarded_events_borrow_stream_class_default_clock_class_const( + msg); if (!clock_class) { goto no_clock_snapshot; } @@ -555,8 +558,9 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, msg, &clock_snapshot); break; case BT_MESSAGE_TYPE_DISCARDED_PACKETS: - bt_message_discarded_packets_borrow_stream_class_default_clock_class_const( - msg); + clock_class = + bt_message_discarded_packets_borrow_stream_class_default_clock_class_const( + msg); if (!clock_class) { goto no_clock_snapshot; } @@ -565,8 +569,9 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, msg, &clock_snapshot); break; case BT_MESSAGE_TYPE_STREAM_ACTIVITY_BEGINNING: - bt_message_stream_activity_beginning_borrow_stream_class_default_clock_class_const( - msg); + clock_class = + bt_message_stream_activity_beginning_borrow_stream_class_default_clock_class_const( + msg); if (!clock_class) { goto no_clock_snapshot; } @@ -579,8 +584,9 @@ int get_msg_ts_ns(struct muxer_comp *muxer_comp, break; case BT_MESSAGE_TYPE_STREAM_ACTIVITY_END: - bt_message_stream_activity_end_borrow_stream_class_default_clock_class_const( - msg); + clock_class = + bt_message_stream_activity_end_borrow_stream_class_default_clock_class_const( + msg); if (!clock_class) { goto no_clock_snapshot; }