Skip to content

Commit

Permalink
differentiate between capture / playback audio thread names
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 14, 2017
1 parent 763e138 commit c4d5450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -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) {
Expand Down

0 comments on commit c4d5450

Please sign in to comment.