Commit af0d827d authored by sletz's avatar sletz
Browse files

Now correctly return an error if JackServer::SetBufferSize could not change...

Now correctly return an error if JackServer::SetBufferSize could not change the buffer size (and was just restoring the current one).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3298 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 6c84ccef
......@@ -26,6 +26,7 @@ Michael Voigt
2009-02-09 Stephane Letz <letz@grame.fr>
* Use PRIu32 kind of macro in JackAlsaDriver again.
* Now correctly return an error if JackServer::SetBufferSize could not change the buffer size (and was just restoring the current one).
2009-02-05 Stephane Letz <letz@grame.fr>
......
......@@ -228,7 +228,9 @@ int JackServer::SetBufferSize(jack_nframes_t buffer_size)
jack_error("Cannot SetBufferSize for audio driver, restore current value %ld", current_buffer_size);
fFreewheelDriver->SetBufferSize(current_buffer_size);
fEngineControl->InitFrameTime();
return fAudioDriver->Start();
fAudioDriver->Start();
// SetBufferSize actually failed, so return an error...
return -1;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment