X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginlv2client.C;h=fcb604046ee4c160d9f45de1722e2059c63ae8c7;hb=2d6e9038e576c89a3bef82f1970c6659f0fa5fa3;hp=6c5e468b0380f06af03fe67aa053e1e985efa0bf;hpb=ca4207ccb98b0ce69a33461aaed0ad6b5504cbc2;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/pluginlv2client.C b/cinelerra-5.1/cinelerra/pluginlv2client.C index 6c5e468b..fcb60404 100644 --- a/cinelerra-5.1/cinelerra/pluginlv2client.C +++ b/cinelerra-5.1/cinelerra/pluginlv2client.C @@ -383,7 +383,7 @@ PluginClient *PluginServer::new_lv2_plugin() { PluginLV2Client *client = new PluginLV2Client(this); if( client->load_lv2(path, client->title) ) { delete client; return client = 0; } - client->init_lv2(); + if( client->init_lv2() ) { delete client; return client = 0; }; return client; } @@ -400,12 +400,19 @@ int MWindow::init_lv2_index(MWindow *mwindow, Preferences *preferences, FILE *fp const LilvPlugin *lilv = lilv_plugins_get(all_plugins, i); const char *uri = lilv_node_as_uri(lilv_plugin_get_uri(lilv)); if( blacklist.is_badboy(uri) ) continue; -printf("LOAD: %s\n", uri); +// TODO It would be nice to print the full path of this particular plugin +// in case it fails, because the systems' LV2 path might include multiple +// directories. But function lilv_uri_to_path does not like the uri. + +// Don't print the newline, so called functions can concatenate their +// error to the name. + printf("LOAD: %s ", uri); PluginServer server(mwindow, uri, PLUGIN_TYPE_LV2); int result = server.open_plugin(1, preferences, 0, 0); if( !result ) { server.write_table(fp, uri, PLUGIN_LV2_ID, 0); server.close_plugin(); + printf(" \n"); } }