jack: set error message when failing to open jack client
parent
dd4636e3fd
commit
2521ba47fe
|
@ -416,6 +416,7 @@ static SDL_bool JACK_Init(SDL_AudioDriverImpl *impl)
|
||||||
jack_client_t *client = JACK_jack_client_open("SDL", JackNoStartServer, &status, NULL);
|
jack_client_t *client = JACK_jack_client_open("SDL", JackNoStartServer, &status, NULL);
|
||||||
if (!client) {
|
if (!client) {
|
||||||
UnloadJackLibrary();
|
UnloadJackLibrary();
|
||||||
|
SDL_SetError("Can't open JACK client");
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
JACK_jack_client_close(client);
|
JACK_jack_client_close(client);
|
||||||
|
|
Loading…
Reference in New Issue