add ffmpeg/ladspa plugin custom picon support
authorGood Guy <[email protected]>
Thu, 17 Nov 2016 15:54:43 +0000 (08:54 -0700)
committerGood Guy <[email protected]>
Thu, 17 Nov 2016 15:54:43 +0000 (08:54 -0700)
cinelerra-5.1/cinelerra/pluginserver.C

index 9667ef7726e4c2e1b74924500e1322dc3083315f..cd69dfe7b4a6f899f351402446b7606114d7d086 100644 (file)
@@ -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++;