Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
struct trimmer_comp *trimmer_comp = create_trimmer_comp();
if (!trimmer_comp) {
- ret = BT_SELF_COMPONENT_STATUS_NOMEM;
+ status = BT_SELF_COMPONENT_STATUS_NOMEM;
goto error;
}
ret = init_trimmer_comp_from_params(trimmer_comp, params);
if (ret) {
+ status = BT_SELF_COMPONENT_STATUS_ERROR;
goto error;
}
}
end:
- return ret;
+ return status;
}
static
*reached_end = true;
} else {
push_message(trimmer_it, msg);
+ status = BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
msg = NULL;
}
}