[SCM] calf/master: Use persist extension in a GUI.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:40:23 UTC 2013


The following commit has been merged in the master branch:
commit 9e065ddffb2124766dd299e98a3fa65b6ebd83e1
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Sep 19 23:25:54 2010 +0100

    Use persist extension in a GUI.

diff --git a/src/lv2gui.cpp b/src/lv2gui.cpp
index 9b8ba0a..7f70faa 100644
--- a/src/lv2gui.cpp
+++ b/src/lv2gui.cpp
@@ -193,6 +193,12 @@ const line_graph_iface *plugin_proxy_base::get_line_graph_iface() const
 
 char *plugin_proxy_base::configure(const char *key, const char *value)
 {
+#if USE_PERSIST_EXTENSION
+    if (instance)
+        return instance->configure(key, value);
+    else
+        return "Configuration not available because of lack of instance-access/data-access";
+#else
     map<string, int>::iterator i = params_by_name.find(key);
     if (i == params_by_name.end())
     {
@@ -220,6 +226,7 @@ char *plugin_proxy_base::configure(const char *key, const char *value)
     }
     
     return NULL;
+#endif
 }
 
 void plugin_proxy_base::enable_all_sends()

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list