diff options
author | David Robillard <d@drobilla.net> | 2007-01-05 00:45:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-05 00:45:53 +0000 |
commit | 8e946da143030272b1bb325aba1ea52e67792254 (patch) | |
tree | 3af31b764759c1c3efc9e62a2c4dde9def9957b0 /src | |
parent | 2089012518d57d8f94d904b5f71854d02e3766a7 (diff) | |
download | patchage-8e946da143030272b1bb325aba1ea52e67792254.tar.gz patchage-8e946da143030272b1bb325aba1ea52e67792254.tar.bz2 patchage-8e946da143030272b1bb325aba1ea52e67792254.zip |
Fix for redundant buffer size setting bug (courtesy nedko).
git-svn-id: http://svn.drobilla.net/lad/patchage@231 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/JackDriver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 875f8f1..0add9da 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -464,6 +464,9 @@ JackDriver::reset_xruns() void JackDriver::set_buffer_size(jack_nframes_t size) { + if (buffer_size() == size) + return; + if (m_client && jack_set_buffer_size(m_client, size)) m_app->status_message("[JACK] ERROR: Unable to set buffer size"); } |