use AudioBackendInfo::already_configured() to correctly determine if backend requires setup
Fixes issues when using JACK backend in combination with others, that prevented connecting to an existing JACK server.
This commit is contained in:
parent
66559cd795
commit
392c3a6bef
@ -1016,16 +1016,14 @@ AudioEngine::halted_callback (const char* why)
|
||||
bool
|
||||
AudioEngine::setup_required () const
|
||||
{
|
||||
/* If there is only a single backend and it claims to be configured
|
||||
* already there is no setup to be done.
|
||||
*
|
||||
* Primarily for a case where there is only a JACK backend and
|
||||
* JACK is already running.
|
||||
*/
|
||||
|
||||
if (_backend) {
|
||||
if (_backend->info().already_configured())
|
||||
return false;
|
||||
} else {
|
||||
if (_backends.size() == 1 && _backends.begin()->second->already_configured()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user