lock xft, plugin index builder lock, clear clip thumbnails, clear vwin clock, setpoin...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginaclientlad.C
index 403ec7a874b0766935bd50a94b0287de3059dc50..f1cbb45a317fa4dd82fa4fdb1cb655484878aa19 100644 (file)
@@ -655,21 +655,14 @@ int PluginAClientLAD::process_realtime(int64_t size,
 }
 
 int MWindow::init_ladspa_index(MWindow *mwindow, Preferences *preferences,
-       const char *index_path, const char *plugin_dir)
+       FILE *fp, const char *plugin_dir)
 {
        char plugin_path[BCTEXTLEN], *path = FileSystem::basepath(plugin_dir);
        strcpy(plugin_path, path);  delete [] path;
        printf("init ladspa index: %s\n", plugin_dir);
-       FILE *fp = fopen(index_path,"w");
-       if( !fp ) {
-               fprintf(stderr,_("MWindow::init_ladspa_index: "
-                       "can't create plugin index: %s\n"), index_path);
-               return 1;
-       }
        fprintf(fp, "%d\n", PLUGIN_FILE_VERSION);
        fprintf(fp, "%s\n", plugin_dir);
        init_plugin_index(mwindow, preferences, fp, plugin_path);
-       fclose(fp);
        return 0;
 }