Fix: flt.utils.muxer: use return value (clock class)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Mar 2019 18:06:39 +0000 (14:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:38 +0000 (18:19 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/utils/muxer/muxer.c

index 63a0f601210ef7abdd7ed26031fdaf9610f1a7a9..91124043fa2ac04cf7bad6bbe67c81259235dd10 100644 (file)
@@ -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;
                }
This page took 0.025791 seconds and 4 git commands to generate.