[util] Limit chafa to one thread

This commit is contained in:
Behdad Esfahbod 2023-01-19 12:17:30 -07:00
parent 2b010d8017
commit f43ba351e8
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ chafa_print_image_rgb24 (const void *data, int width, int height, int stride, in
/* Adapt to terminal; use sixels if available, and fall back to symbols
* with as many colors as are supported */
chafa_set_n_threads (1); // https://github.com/hpjansson/chafa/issues/125#issuecomment-1397475217
environ = g_get_environ ();
term_info = chafa_term_db_detect (chafa_term_db_get_default (),
environ);