Skip to content

Commit

Permalink
Disable SDL2 signal handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
zzril committed Oct 11, 2024
1 parent 00486bb commit 1cb34e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <SDL2/SDL.h>
#include <SDL2/SDL_audio.h>
#include <SDL2/SDL_error.h>
#include <SDL2/SDL_hints.h>

#include "config.h"
#include "player.h"
Expand Down Expand Up @@ -70,6 +71,8 @@ int Player_init_at(Player* player) {
return 2;
}

SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");

int status = SDL_Init(SDL_INIT_AUDIO);
if(status < 0) {
print_sdl_error("SDL_Init");
Expand Down

0 comments on commit 1cb34e9

Please sign in to comment.