X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginserver.C;h=8feb6ed612ce35dfab061837d629aafb19915125;hb=7ead44762b23da404eee89b63e0474153fdf58a1;hp=20e08325524997f9b29d8710c90c242a5a69a05c;hpb=15df6cbff7373d232ae0b8dcaecd9aa51ff5c388;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/pluginserver.C b/cinelerra-5.1/cinelerra/pluginserver.C index 20e08325..8feb6ed6 100644 --- a/cinelerra-5.1/cinelerra/pluginserver.C +++ b/cinelerra-5.1/cinelerra/pluginserver.C @@ -271,7 +271,7 @@ int PluginServer::get_synthesis() void PluginServer::set_title(const char *string) { - if(title) delete [] title; + delete [] title; title = cstrdup(string); } @@ -1238,7 +1238,7 @@ int PluginServer::get_plugin_png_path(char *png_path, const char *plugin_icons) char png_name[BCSTRLEN]; get_plugin_png_name(png_name); char *pp = png_path, *ep = pp + BCTEXTLEN-1; - pp += snprintf(pp, ep-pp, "%s/picon_%s/%s", + pp += snprintf(pp, ep-pp, "%s/picon/%s/%s", File::get_plugin_path(), plugin_icons, png_name); return access(png_path,R_OK) ? 1 : 0; } @@ -1257,7 +1257,7 @@ VFrame *PluginServer::get_plugin_images() return VFramePng::vframe_png(png_path,0,0); char png_name[BCSTRLEN]; get_plugin_png_name(png_name); - unsigned char *data = mwindow->theme->get_image_data(png_name); + unsigned char *data = mwindow->theme->get_image_data(png_name, 0); return data ? new VFramePng(data, 0.) : 0; }