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 /src | |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/AtomWriter.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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); } } |