fix for missing lv2 config update
authorGood Guy <[email protected]>
Sun, 27 May 2018 18:26:30 +0000 (12:26 -0600)
committerGood Guy <[email protected]>
Sun, 27 May 2018 18:26:30 +0000 (12:26 -0600)
cinelerra-5.1/cinelerra/pluginlv2client.C

index f327da81a533711c864c846eb0c84727a30c6308..d5c385b0e052d70581de7ff972e0f06e5a293cc6 100644 (file)
@@ -287,7 +287,8 @@ void PluginLV2Client::process_buffer(int size)
 int PluginLV2Client::process_realtime(int64_t size,
        Samples *input_ptr, Samples *output_ptr)
 {
-       load_configuration();
+       if( load_configuration() )
+               update_lv2();
        init_buffer(size);
        load_buffer(size, &input_ptr, 1);
        process_buffer(size);
@@ -297,7 +298,8 @@ int PluginLV2Client::process_realtime(int64_t size,
 int PluginLV2Client::process_realtime(int64_t size,
        Samples **input_ptr, Samples **output_ptr)
 {
-       load_configuration();
+       if( load_configuration() )
+               update_lv2();
        init_buffer(size);
        load_buffer(size, input_ptr, PluginClient::total_in_buffers);
        process_buffer(size);