module-coreaudio-device: Set the thread name to device name
authorDaniel Mack <zonque@gmail.com>
Fri, 22 Apr 2011 02:10:46 +0000 (04:10 +0200)
committerColin Guthrie <colin@mageia.org>
Sat, 23 Apr 2011 17:23:37 +0000 (18:23 +0100)
This makes gdb's "info threads" better understandable

src/modules/macosx/module-coreaudio-device.c

index 0fad9c5..7a1f177 100644 (file)
@@ -759,7 +759,7 @@ int pa__init(pa_module *m) {
     ca_device_create_streams(m, TRUE);
 
     /* create the message thread */
-    if (!(u->thread = pa_thread_new("coreaudio", thread_func, u))) {
+    if (!(u->thread = pa_thread_new(u->device_name, thread_func, u))) {
         pa_log("Failed to create thread.");
         goto fail;
     }