[SCM] calf/master: Don't save invalid URIs to LV2 state.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:41:05 UTC 2013


The following commit has been merged in the master branch:
commit f63124a88bff1c6444639e6969854e5ed162f24d
Author: David Robillard <d at drobilla.net>
Date:   Mon Apr 23 22:37:27 2012 +0100

    Don't save invalid URIs to LV2 state.

diff --git a/src/calf/lv2wrap.h b/src/calf/lv2wrap.h
index 32e54eb..d17804e 100644
--- a/src/calf/lv2wrap.h
+++ b/src/calf/lv2wrap.h
@@ -96,7 +96,8 @@ struct lv2_instance: public plugin_ctl_iface, public progress_report_iface
         assert(string_type);
         for (unsigned int i = 0; vars[i]; i++)
         {
-            const uint32_t key   = uri_map->uri_to_id(uri_map->callback_data, NULL, vars[i]);
+            std::string    pred  = std::string("urn:calf:") + vars[i];
+            const uint32_t key   = uri_map->uri_to_id(uri_map->callback_data, NULL, pred.c_str());
             size_t         len   = 0;
             uint32_t       type  = 0;
             uint32_t       flags = 0;
@@ -313,8 +314,9 @@ struct lv2_wrapper
             
             virtual void send_configure(const char *key, const char *value)
             {
+                std::string pred = std::string("urn:calf:") + key;
                 (*store)(callback_data,
-                         inst->uri_map->uri_to_id(inst->uri_map->callback_data, NULL, key),
+                         inst->uri_map->uri_to_id(inst->uri_map->callback_data, NULL, pred.c_str()),
                          value,
                          strlen(value) + 1,
                          string_data_type,

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list