From c4d54504fad442cbc14d40d43b285b749f34aae6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 14 Mar 2017 07:16:56 -0700 Subject: [PATCH] differentiate between capture / playback audio thread names --- src/audio/SDL_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 39d2a7087..7b0e2e371 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -1371,7 +1371,7 @@ open_audio_device(const char *devname, int iscapture, const size_t stacksize = is_internal_thread ? 64 * 1024 : 0; char threadname[64]; - SDL_snprintf(threadname, sizeof (threadname), "SDLAudioDev%d", (int) device->id); + SDL_snprintf(threadname, sizeof (threadname), "SDLAudio%c%d", (iscapture) ? 'C' : 'P', (int) device->id); device->thread = SDL_CreateThreadInternal(iscapture ? SDL_CaptureAudio : SDL_RunAudio, threadname, stacksize, device); if (device->thread == NULL) {