mirror of https://github.com/libsdl-org/SDL
pipewire: Give hotplug threads a more indicative name
When debugging crash reports, it's helpful to know which thread is associated with which external library. Linux limits the length of a thread name to 15 bytes (not including the zero-termination), so abbreviate Pipewire to "pw" and hotplug to "plug" to fit the desired information into the allowed space. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
c797ae1619
commit
4728325044
|
@ -723,7 +723,7 @@ static bool hotplug_loop_init(void)
|
|||
spa_list_init(&hotplug_pending_list);
|
||||
spa_list_init(&hotplug_io_list);
|
||||
|
||||
hotplug_loop = PIPEWIRE_pw_thread_loop_new("SDLAudioHotplug", NULL);
|
||||
hotplug_loop = PIPEWIRE_pw_thread_loop_new("SDLPwAudioPlug", NULL);
|
||||
if (!hotplug_loop) {
|
||||
return SDL_SetError("Pipewire: Failed to create hotplug detection loop (%i)", errno);
|
||||
}
|
||||
|
|
|
@ -981,7 +981,7 @@ static bool hotplug_loop_init(void)
|
|||
|
||||
hotplug.have_1_0_5 = PIPEWIRE_pw_check_library_version(1,0,5);
|
||||
|
||||
hotplug.loop = PIPEWIRE_pw_thread_loop_new("SDLAudioHotplug", NULL);
|
||||
hotplug.loop = PIPEWIRE_pw_thread_loop_new("SDLPwCameraPlug", NULL);
|
||||
if (!hotplug.loop) {
|
||||
return SDL_SetError("Pipewire: Failed to create hotplug detection loop (%i)", errno);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue