v4l: fix thread name

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 13:52:06 +08:00 committed by GStreamer Marge Bot
parent fd165528d2
commit 95db9d64c0

View file

@ -427,7 +427,7 @@ gst_v4l2_device_provider_start (GstDeviceProvider * provider)
self->context = g_main_context_new ();
self->loop = g_main_loop_new (self->context, FALSE);
self->thread = g_thread_new ("v4l2-device-provider", provider_thread,
self->thread = g_thread_new ("v4l2-dev-prvdr", provider_thread,
g_object_ref (self));
while (self->started == FALSE)