fix LV2 State Flags for Atom:Path
authorRobin Gareus <robin@gareus.org>
Wed, 21 Sep 2016 01:34:43 +0000 (03:34 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 21 Sep 2016 01:34:43 +0000 (03:34 +0200)
state-restore does not set the same flag, so lilv_state_equals()
returns false even for identical states and a new state is saved regardless

actual fix also depends on http://dev.drobilla.net/ticket/1145

libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c

index 249cc7799c0c5d28fc48cdab2e8bb381f39a04e4..1af651be3f7b20387992ee372bac4f912782c7cd 100644 (file)
@@ -566,8 +566,7 @@ save (LV2_Handle                instance,
        char* apath = map_path->abstract_path (map_path->handle, self->current_sf2_file_path);
        store (handle, self->afs_sf2file,
                        apath, strlen (apath) + 1,
-                       self->atom_Path,
-                       LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE);
+                       self->atom_Path, LV2_STATE_IS_POD);
 
        return LV2_STATE_SUCCESS;
 }