Fix LV2 state:StateChanged URI
authorDavid Robillard <d@drobilla.net>
Mon, 7 Nov 2016 01:27:55 +0000 (20:27 -0500)
committerDavid Robillard <d@drobilla.net>
Mon, 7 Nov 2016 12:10:08 +0000 (07:10 -0500)
libs/ardour/ardour/uri_map.h
libs/ardour/lv2_plugin.cc
libs/ardour/uri_map.cc

index 3b5f5be30716c85c002e3e2d3292afbdb86cbd8b..de0999d94f008ebcd2e1373aae67fda0045697a9 100644 (file)
@@ -84,7 +84,7 @@ public:
                uint32_t patch_Set;
                uint32_t patch_property;
                uint32_t patch_value;
-               uint32_t state_Changed;
+               uint32_t state_StateChanged;
 #ifdef LV2_EXTENDED
                uint32_t auto_event;
                uint32_t auto_setup;
index eca7f0c0ef77f2512309e05178e1e6fee139c40d..a7f8bfb20965f4e4a4c00bd8bba138040439edf8 100644 (file)
@@ -2777,7 +2777,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs,
                                        if (atom->type == _uri_map.urids.atom_Blank ||
                                            atom->type == _uri_map.urids.atom_Object) {
                                                LV2_Atom_Object* obj = (LV2_Atom_Object*)atom;
-                                               if (obj->body.otype == _uri_map.urids.state_Changed) {
+                                               if (obj->body.otype == _uri_map.urids.state_StateChanged) {
                                                        _session.set_dirty ();
                                                }
                                        }
index 4fcbb24df3a43c289ddab892c43b36e52e27f241..9879fe22d1be845cb9bc42cce21b185a2e7e156c 100644 (file)
@@ -62,7 +62,7 @@ URIMap::URIDs::init(URIMap& uri_map)
        patch_Set           = uri_map.uri_to_id("http://lv2plug.in/ns/ext/patch#Set");
        patch_property      = uri_map.uri_to_id("http://lv2plug.in/ns/ext/patch#property");
        patch_value         = uri_map.uri_to_id("http://lv2plug.in/ns/ext/patch#value");
-       state_Changed       = uri_map.uri_to_id("http://lv2plug.in/ns/ext/state/#StateChanged"); // since LV2 1.15.1
+       state_StateChanged  = uri_map.uri_to_id("http://lv2plug.in/ns/ext/state#StateChanged"); // since LV2 1.15.1
 #ifdef LV2_EXTENDED
        auto_event         = uri_map.uri_to_id(LV2_AUTOMATE_URI__event);
        auto_setup         = uri_map.uri_to_id(LV2_AUTOMATE_URI__setup);