opnsense-ports/audio/fasttracker2/files/patch-src_ft2__main.c
Franco Fichtner c448dd1c68 */*: sync with upstream
Taken from: HardenedBSD
2019-03-20 03:44:37 +01:00

18 lines
606 B
C

--- src/ft2_main.c.orig 2019-03-19 07:15:21 UTC
+++ src/ft2_main.c
@@ -188,6 +188,7 @@ int main(int argc, char *argv[])
//benchmarkAudioChannelMixer(); // for development testing
+#ifndef __FreeBSD__
// set up MIDI input (in a thread because it can take quite a while on f.ex. macOS)
initMidiThread = SDL_CreateThread(initMidiFunc, NULL, NULL);
if (initMidiThread == NULL)
@@ -197,6 +198,7 @@ int main(int argc, char *argv[])
return (1);
}
SDL_DetachThread(initMidiThread); // don't wait for this thread, let it clean up when done
+#endif
SDL_EventState(SDL_DROPFILE, SDL_ENABLE);