[SCM] calf/master: + DSSI: do not store temporary variable values in presets

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:31 UTC 2013


The following commit has been merged in the master branch:
commit 18e67492405f2ba7ebf513181a3424a0c79d9db0
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Fri Apr 24 19:08:16 2009 +0100

    + DSSI: do not store temporary variable values in presets

diff --git a/src/dssigui.cpp b/src/dssigui.cpp
index 002d7fb..4ec9cc2 100644
--- a/src/dssigui.cpp
+++ b/src/dssigui.cpp
@@ -195,7 +195,9 @@ struct plugin_proxy: public plugin_ctl_iface, public plugin_metadata_proxy, publ
         }
     }
     char *configure(const char *key, const char *value) { 
-        cfg_vars[key] = value;
+        // do not store temporary vars in presets
+        if (strncmp(key, "OSC:", 4))
+            cfg_vars[key] = value;
         osc_inline_typed_strstream str;
         str << key << value;
         client->send("/configure", str);
@@ -468,7 +470,9 @@ void dssi_osc_server::receive_osc_message(std::string address, std::string args,
     {
         string key, value;
         buffer >> key >> value;
-        plugin->cfg_vars[key] = value;
+        // do not store temporary vars in presets
+        if (strncmp(key.c_str(), "OSC:", 4))
+            plugin->cfg_vars[key] = value;
         // XXXKF perhaps this should be queued !
         window->gui->refresh();
         return;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list