From: Good Guy Date: Thu, 17 Nov 2016 15:54:43 +0000 (-0700) Subject: add ffmpeg/ladspa plugin custom picon support X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=9c0d3d4baad0f304163b7c4ead8e78353af1f015;p=goodguy%2Fhistory.git add ffmpeg/ladspa plugin custom picon support --- 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++;