Sinks own their input iterators
[babeltrace.git] / lib / plugin-system / source.c
index 333139f51f17e6c5f74ad35b228325aa9c7af9d6..51b32f83349ddd6eb78a5ad2ab40014c2193e1a3 100644 (file)
@@ -93,7 +93,8 @@ bt_component_source_set_iterator_init_cb(struct bt_component *component,
        struct bt_component_source *source;
        enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
 
-       if (component->class->type != BT_COMPONENT_TYPE_SOURCE) {
+       if (component->class->type != BT_COMPONENT_TYPE_SOURCE ||
+                       !component->initializing) {
                ret = BT_COMPONENT_STATUS_INVALID;
                goto end;
        }
This page took 0.023052 seconds and 4 git commands to generate.