- ret = bt_self_component_sink_add_input_port(comp, in_port_name,
- NULL, NULL);
- if (ret != BT_SELF_COMPONENT_STATUS_OK) {
- goto end;
+ if (bt_self_component_sink_add_input_port(comp,
+ in_port_name, NULL, NULL) < 0) {
+ ret = BT_COMPONENT_CLASS_INIT_METHOD_STATUS_MEMORY_ERROR;
+ goto error;