X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fpluginserver.C;fp=cinelerra-5.0%2Fcinelerra%2Fpluginserver.C;h=25573cf4b95986e61e61ae4ec3af2af501f73567;hb=a9f2ea113da20b8cfbe4f394d69dc1e8315ddddd;hp=6602f1eb70b0c6b9deac7420e0d2ed6e7529ff41;hpb=a88eb8f0281b88ae5a6dcef23d1b22f0c48a46cf;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/pluginserver.C b/cinelerra-5.0/cinelerra/pluginserver.C index 6602f1eb..25573cf4 100644 --- a/cinelerra-5.0/cinelerra/pluginserver.C +++ b/cinelerra-5.0/cinelerra/pluginserver.C @@ -314,16 +314,11 @@ int PluginServer::open_plugin(int master, this->plugin = plugin; this->edl = edl; if( plugin_type != PLUGIN_TYPE_FFMPEG && plugin_type != PLUGIN_TYPE_EXECUTABLE && !load_obj() ) { -// If the load failed it may still be an executable tool for a specific -// file format, in which case we just store the path. - set_title(path); - char string[BCTEXTLEN]; - strcpy(string, load_error()); - if( !strstr(string, "executable") ) { - eprintf("PluginServer::open_plugin: load_obj %s = %s\n", path, string); - return PLUGINSERVER_NOT_RECOGNIZED; - } - plugin_type = PLUGIN_TYPE_EXECUTABLE; +// If the load failed, can't use error to detect executable +// because locale and language selection change the load_error() +// if( !strstr(string, "executable") ) { set_title(path); plugin_type = PLUGIN_TYPE_EXECUTABLE; } + eprintf("PluginServer::open_plugin: load_obj %s = %s\n", path, load_error()); + return PLUGINSERVER_NOT_RECOGNIZED; } if( plugin_type == PLUGIN_TYPE_UNKNOWN || plugin_type == PLUGIN_TYPE_BUILTIN ) { new_plugin =