mdns: fix thread names

Linux thread names are limited to 15 chars. providing long thread names
causes the thread name not to be applied at all

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6094>
This commit is contained in:
Tim Blechmann 2024-02-12 14:02:44 +08:00 committed by GStreamer Marge Bot
parent 95db9d64c0
commit edf64dc277

View file

@ -402,7 +402,7 @@ gst_mdns_device_provider_start (GstDeviceProvider * provider)
ctx->last_seen_devices = g_sequence_new (NULL);
self->current_ctx = ctx;
g_thread_new (NULL, (GThreadFunc) _listen, ctx);
g_thread_new ("MDNS listener", (GThreadFunc) _listen, ctx);
return TRUE;
}