mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 12:40:42 +00:00
don't seg on shutdown when jackd wasn't there
This commit is contained in:
parent
a2b1cc7845
commit
48e7b65f51
1 changed files with 6 additions and 4 deletions
|
@ -175,10 +175,12 @@ static void
|
||||||
s_shutdown (void)
|
s_shutdown (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
jack_deactivate (jack_handle);
|
if (jack_handle) {
|
||||||
for (i = 0; i < 2; i++)
|
jack_deactivate (jack_handle);
|
||||||
jack_port_unregister (jack_handle, jack_out[i]);
|
for (i = 0; i < 2; i++)
|
||||||
jack_client_close (jack_handle);
|
jack_port_unregister (jack_handle, jack_out[i]);
|
||||||
|
jack_client_close (jack_handle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static general_funcs_t plugin_info_general_funcs = {
|
static general_funcs_t plugin_info_general_funcs = {
|
||||||
|
|
Loading…
Reference in a new issue