diff options
author | David Robillard <d@drobilla.net> | 2014-03-31 03:59:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-03-31 03:59:04 +0000 |
commit | a1da3ac5c84d2cffe25fba199815cd4dc839c862 (patch) | |
tree | b2c3cf77e9d8ed1213eae58ce3b2f983f666016f | |
parent | 641e6651220719a70c0fc2cdf9abac60458e587a (diff) | |
download | ingen-a1da3ac5c84d2cffe25fba199815cd4dc839c862.tar.gz ingen-a1da3ac5c84d2cffe25fba199815cd4dc839c862.tar.bz2 ingen-a1da3ac5c84d2cffe25fba199815cd4dc839c862.zip |
Fix running GUI remotely and as an LV2 plugin.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5354 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | ingen/AtomWriter.hpp | 3 | ||||
-rw-r--r-- | src/AtomWriter.cpp | 11 |
2 files changed, 3 insertions, 11 deletions
diff --git a/ingen/AtomWriter.hpp b/ingen/AtomWriter.hpp index c591c528..c7ac3cc6 100644 --- a/ingen/AtomWriter.hpp +++ b/ingen/AtomWriter.hpp @@ -84,8 +84,7 @@ private: void forge_arc(const Raul::Path& tail, const Raul::Path& head); void forge_request(LV2_Atom_Forge_Frame* frame, LV2_URID type); - void finish_msg(); - int32_t next_id(); + void finish_msg(); URIMap& _map; URIs& _uris; diff --git a/src/AtomWriter.cpp b/src/AtomWriter.cpp index 78e54ffa..7c956ece 100644 --- a/src/AtomWriter.cpp +++ b/src/AtomWriter.cpp @@ -64,12 +64,6 @@ AtomWriter::finish_msg() _out.len = 0; } -int32_t -AtomWriter::next_id() -{ - return _id ? ++_id : 0; -} - void AtomWriter::bundle_begin() { @@ -121,10 +115,9 @@ AtomWriter::forge_request(LV2_Atom_Forge_Frame* frame, LV2_URID type) { lv2_atom_forge_object(&_forge, frame, 0, type); - const int32_t id = next_id(); - if (id) { + if (_id) { lv2_atom_forge_key(&_forge, _uris.patch_sequenceNumber); - lv2_atom_forge_int(&_forge, id); + lv2_atom_forge_int(&_forge, _id); } } |