lib: create input port msg iterator from self {msg iterator, sink comp.}
[babeltrace.git] / src / plugins / utils / trimmer / trimmer.c
index 720b4f812b4a2c20c0ddd1000f36284031760316..5c7ec431cc9ec64ff78157d477682173b7eb0fd3 100644 (file)
@@ -445,7 +445,7 @@ int set_bound_from_param(struct trimmer_comp *trimmer_comp,
        char tmp_arg[64];
 
        if (bt_value_is_signed_integer(param)) {
-               int64_t value = bt_value_signed_integer_get(param);
+               int64_t value = bt_value_integer_signed_get(param);
 
                /*
                 * Just convert it to a temporary string to handle
@@ -685,7 +685,8 @@ bt_component_class_message_iterator_init_method_status trimmer_msg_iter_init(
        trimmer_it->begin = trimmer_it->trimmer_comp->begin;
        trimmer_it->end = trimmer_it->trimmer_comp->end;
        trimmer_it->upstream_iter =
-               bt_self_component_port_input_message_iterator_create(
+               bt_self_component_port_input_message_iterator_create_from_message_iterator(
+                       self_msg_iter,
                        bt_self_component_filter_borrow_input_port_by_name(
                                self_comp, in_port_name));
        if (!trimmer_it->upstream_iter) {
@@ -882,7 +883,7 @@ int set_trimmer_iterator_bound(struct trimmer_iterator *trimmer_it,
 
        if (!res) {
                BT_COMP_LOGE_ERRNO("Cannot convert timestamp to date and time",
-                       "ts=%" PRId64, (int64_t) time_seconds);
+                       "ts=%" PRId64, (int64_t) time_seconds);
                ret = -1;
                goto end;
        }
@@ -1598,7 +1599,7 @@ bt_component_class_message_iterator_next_method_status handle_message(
        bt_component_class_message_iterator_next_method_status status;
        const bt_stream *stream = NULL;
        int64_t ns_from_origin = INT64_MIN;
-       bool has_ns_from_origin;
+       bool has_ns_from_origin = false;
        int ret;
 
        /* Find message's associated stream */
This page took 0.040562 seconds and 4 git commands to generate.