- bt_self_component_set_data(
- bt_self_component_sink_as_self_component(component), dummy);
+ add_port_status = bt_self_component_sink_add_input_port(self_comp_sink,
+ "in", NULL, NULL);
+ if (add_port_status != BT_SELF_COMPONENT_ADD_PORT_STATUS_OK) {
+ status = (int) add_port_status;
+ goto error;
+ }
+
+ bt_self_component_set_data(self_comp, dummy);
+
+ status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK;