repair default keyframe load, tweak init default histogram threshold
[goodguy/history.git] / cinelerra-5.1 / cinelerra / lv2ui.C
index 3ea5ba170f8ba006a2bddaca2ea58fef9c51df68..a025ef1c5d79e727e9738ce6f7f5391c40d6922d 100644 (file)
@@ -34,9 +34,9 @@ int PluginLV2ChildUI::run(int ac, char **av)
                ForkBase::ppid = atoi(av[3]);
        }
        else {
-               int sample_rate = 48000;
+               int sample_rate = samplerate, bfrsz = block_length;
                if( ac > 2 ) sample_rate = atoi(av[2]);
-               if( init_ui(av[1], sample_rate) ) {
+               if( init_ui(av[1], sample_rate, bfrsz) ) {
                        fprintf(stderr," init_ui failed\n");
                        return 1;
                }