mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 23:59:37 +02:00
Bug 2070 - Linux: Crash on Rescan Audio Devices if Jack already stopped
This commit is contained in:
parent
6f5f586b19
commit
477c9d2a4e
@ -1008,12 +1008,18 @@ static void Terminate( struct PaUtilHostApiRepresentation *hostApi )
|
||||
|
||||
/* note: this automatically disconnects all ports, since a deactivated
|
||||
* client is not allowed to have any ports connected */
|
||||
ASSERT_CALL( jack_deactivate( jackHostApi->jack_client ), 0 );
|
||||
if( !jackHostApi->jackIsDown )
|
||||
{
|
||||
ASSERT_CALL( jack_deactivate( jackHostApi->jack_client ), 0 );
|
||||
}
|
||||
|
||||
PaJack_TerminateHostApiMutex( jackHostApi );
|
||||
PaJack_TerminateCommandSync( jackHostApi );
|
||||
|
||||
ASSERT_CALL( jack_client_close( jackHostApi->jack_client ), 0 );
|
||||
if( !jackHostApi->jackIsDown )
|
||||
{
|
||||
ASSERT_CALL( jack_client_close( jackHostApi->jack_client ), 0 );
|
||||
}
|
||||
|
||||
if( jackHostApi->deviceInfoMemory )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user