lv2 tweaks, add set dft transition, zoom fix, fs test_filter fix
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginlv2.C
index c894bd0a92e7669aa5cb8c6b64ce3b2cd4b8a17a..d5f6c079eaf5ee4500a1a692d71caaa342541718 100644 (file)
@@ -180,7 +180,7 @@ int PluginLV2::init_lv2(PluginLV2ClientConfig &conf, int sample_rate, int bfrsz)
        features.append(new Lv2Feature(LV2_BUF_SIZE__boundedBlockLength,  0));
        features.append(new Lv2Feature(LV2_WORKER__schedule, &schedule));
 
-       if( sample_rate < 64 ) sample_rate = 44100;
+       if( sample_rate < 64 ) sample_rate = samplerate;
 
        atom_int   = uri_table.map(LV2_ATOM__Int);
        atom_float = uri_table.map(LV2_ATOM__Float);