]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/ev-poppler.cc
Use an specific lock for FontConfig. Hopefully it fixes some crashes
[evince.git] / pdf / ev-poppler.cc
index d49579e24e983094ed9fec305753df1f5d5129f2..d4372ad6be7cbb1ffa66488676efc127697c6d52 100644 (file)
@@ -1147,9 +1147,11 @@ make_thumbnail_for_size (PdfDocument   *pdf_document,
                                 width, height);
        gdk_pixbuf_fill (pixbuf, 0xffffffff);
 
+       ev_document_fc_mutex_lock ();
        poppler_page_render_to_pixbuf (poppler_page, 0, 0,
                                       width, height,
                                       scale, rotation, pixbuf);
+       ev_document_fc_mutex_unlock ();
        
 
        g_object_unref (poppler_page);