video-converter: Give a name to the thread-pool threads
authorSebastian Dröge <sebastian@centricular.com>
Fri, 24 Feb 2017 08:04:21 +0000 (10:04 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 24 Feb 2017 08:04:21 +0000 (10:04 +0200)
This way they can be distinguished from any other threads in the same
process.

gst-libs/gst/video/video-converter.c

index b9a3bb5..85f4267 100644 (file)
@@ -262,7 +262,7 @@ gst_parallelized_task_runner_new (guint n_threads)
     /* First thread is the one calling run() */
     if (i > 0) {
       self->threads[i].thread =
-          g_thread_try_new (NULL, gst_parallelized_task_thread_func,
+          g_thread_try_new ("videoconvert", gst_parallelized_task_thread_func,
           &self->threads[i], &err);
       if (!self->threads[i].thread)
         goto error;