+ if (!opt_plugin_path) {
+ fprintf(stderr, "No plugin path specified, aborting...\n");
+ ret = -1;
+ goto end;
+ }
+ printf_verbose("Looking-up plugins at %s",
+ opt_plugin_path ? opt_plugin_path : "Invalid");
+ component_factory = bt_component_factory_create();
+ if (!component_factory) {
+ fprintf(stderr, "Failed to create component factory.\n");
+ ret = -1;
+ goto end;
+ }
+
+ ret = bt_component_factory_load(component_factory, opt_plugin_path);
+ if (ret) {
+ fprintf(stderr, "Failed to load plugins.\n");
+ goto end;
+ }
+
+ ret = bt_component_factory_get_component_class_count(component_factory);
+ if (ret <= 0) {
+ goto end;
+ }
+
+ if (opt_input_paths->len == 0) {
+ ret = -1;
+ goto end;
+ }
+