X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fwriter%2Fwriter.c;h=118210ab2bfe42e771a40dbde7d3fc445105af0e;hb=b9d103befd837c4411112257c2619ef8d68225dd;hp=d50af13bf74528380f9d50e9010a877e12a8898f;hpb=aafdead53e12d8f16e552592979cab0252d21d28;p=babeltrace.git diff --git a/plugins/writer/writer.c b/plugins/writer/writer.c index d50af13b..118210ab 100644 --- a/plugins/writer/writer.c +++ b/plugins/writer/writer.c @@ -265,12 +265,22 @@ enum bt_component_status writer_component_init( struct writer_component *writer_component = create_writer_component(); struct bt_value *value = NULL; const char *path; + void *priv_port; if (!writer_component) { ret = BT_COMPONENT_STATUS_NOMEM; goto end; } + priv_port = bt_private_component_sink_add_input_private_port(component, + "in", NULL); + if (!priv_port) { + ret = BT_COMPONENT_STATUS_NOMEM; + goto end; + } + + bt_put(priv_port); + value = bt_value_map_get(params, "path"); if (!value || bt_value_is_null(value) || !bt_value_is_string(value)) { fprintf(writer_component->err,