module-coreaudio-device: Set the thread name to device name

This makes gdb's "info threads" better understandable
This commit is contained in:
Daniel Mack 2011-04-22 04:10:46 +02:00 committed by Colin Guthrie
parent cda8ebf8f1
commit e6003e8fc5

View file

@ -759,7 +759,7 @@ int pa__init(pa_module *m) {
ca_device_create_streams(m, TRUE); ca_device_create_streams(m, TRUE);
/* create the message thread */ /* 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."); pa_log("Failed to create thread.");
goto fail; goto fail;
} }