Browse Source

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>
Simon McVittie 7 months ago
parent
commit
4728325044
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/audio/pipewire/SDL_pipewire.c
  2. 1 1
      src/camera/pipewire/SDL_camera_pipewire.c

+ 1 - 1
src/audio/pipewire/SDL_pipewire.c

@@ -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);
     }

+ 1 - 1
src/camera/pipewire/SDL_camera_pipewire.c

@@ -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);
     }