If GPU accel. is selected and images are scrolled through rapidly,
occasionally there will be a GdkPixbuf error logged.
This patch first checks if the pixbuf has been created.
update_display_pixbuf(rc);
update_display_pixbuf(rc);
- if (pr->func_post_process)
+ if (pr->func_post_process && pr->pixbuf)
{
pr->func_post_process(pr, &rc->display_pixbuf, 0, 0, gdk_pixbuf_get_width(pr->pixbuf), gdk_pixbuf_get_height(pr->pixbuf), pr->post_process_user_data);
}
{
pr->func_post_process(pr, &rc->display_pixbuf, 0, 0, gdk_pixbuf_get_width(pr->pixbuf), gdk_pixbuf_get_height(pr->pixbuf), pr->post_process_user_data);
}