Browse Source

jack: set error message when failing to open jack client

Anonymous Maarten 1 year ago
parent
commit
2521ba47fe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/audio/jack/SDL_jackaudio.c

+ 1 - 0
src/audio/jack/SDL_jackaudio.c

@@ -416,6 +416,7 @@ static SDL_bool JACK_Init(SDL_AudioDriverImpl *impl)
         jack_client_t *client = JACK_jack_client_open("SDL", JackNoStartServer, &status, NULL);
         if (!client) {
             UnloadJackLibrary();
+            SDL_SetError("Can't open JACK client");
             return SDL_FALSE;
         }
         JACK_jack_client_close(client);