From 9c0d3d4baad0f304163b7c4ead8e78353af1f015 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Thu, 17 Nov 2016 08:54:43 -0700 Subject: [PATCH] add ffmpeg/ladspa plugin custom picon support --- cinelerra-5.1/cinelerra/pluginserver.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinelerra-5.1/cinelerra/pluginserver.C b/cinelerra-5.1/cinelerra/pluginserver.C index 9667ef77..cd69dfe7 100644 --- a/cinelerra-5.1/cinelerra/pluginserver.C +++ b/cinelerra-5.1/cinelerra/pluginserver.C @@ -1208,7 +1208,7 @@ int PluginServer::get_theme_png_path(char *png_path, const char *theme_dir) char *bp = strrchr(path, '/'); if( !bp ) bp = path; else ++bp; char *sp = strrchr(bp,'.'); - if( !sp || ( strcmp(sp, ".plugin") && strcmp(sp,".so") ) ) return 0; + if( !sp ) sp = bp + strlen(bp); char *cp = png_path, *dp = bp; cp += sprintf(cp,"%s/%s/", mwindow->preferences->plugin_dir, theme_dir); while( dp < sp ) *cp++ = *dp++; -- 2.26.2