diff options
author | David Robillard <d@drobilla.net> | 2015-03-08 08:26:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-08 08:26:36 +0000 |
commit | ece884c9c7c7802d92539cef7fbcc69c41ad21c5 (patch) | |
tree | 1accde6192bf8620d4c0f7c342b93f9270d0f432 /src | |
parent | 5273a101cebf8724a7f6f3752a8188afcd7058bc (diff) | |
download | ingen-ece884c9c7c7802d92539cef7fbcc69c41ad21c5.tar.gz ingen-ece884c9c7c7802d92539cef7fbcc69c41ad21c5.tar.bz2 ingen-ece884c9c7c7802d92539cef7fbcc69c41ad21c5.zip |
Simplify LV2 state restore code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5622 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/server/ingen_lv2.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 596e24e6..df0a29e6 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -752,16 +752,15 @@ ingen_restore(LV2_Handle instance, uint32_t type; uint32_t valflags; - const void* path = retrieve(handle, - ingen_file, - &size, &type, &valflags); + const char* path = (const char*)retrieve(handle, + ingen_file, + &size, &type, &valflags); if (!path) { return LV2_STATE_ERR_NO_PROPERTY; } - const char* state_path = (const char*)path; - char* real_path = map_path->absolute_path(map_path->handle, state_path); + char* real_path = map_path->absolute_path(map_path->handle, path); plugin->world->parser()->parse_file(plugin->world, plugin->world->interface().get(), |