[SCM] calf/master: + LV2: do not emit default value for output ports (found by Dave Robillard)

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


The following commit has been merged in the master branch:
commit b3c1df4210795f0ff962c0866babe7818bf70d31
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Tue May 26 22:57:42 2009 +0100

    + LV2: do not emit default value for output ports (found by Dave Robillard)

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index 9b18017..e5afa52 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -254,7 +254,8 @@ static void add_ctl_port(string &ports, parameter_properties &pp, int pidx, plug
     ss << showpoint;
     if (type != PF_STRING)
     {
-        ss << ind << "lv2:default " << pp.def_value << " ;\n";
+        if (!(pp.flags & PF_PROP_OUTPUT))
+            ss << ind << "lv2:default " << pp.def_value << " ;\n";
         ss << ind << "lv2:minimum " << pp.min << " ;\n";
         ss << ind << "lv2:maximum " << pp.max << " ;\n";
         if (pp.step > 1)

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list