X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fthumb_standard.c;h=f3cd252a0f85c0e1e7a583c7bd4193950a123d19;hp=83bb78044a9f68de8753509451f143dedec78758;hb=e436ea53511e1dadab981af18b237fee83fde39b;hpb=2dfa5f58107ba16e171e2e65524859a42b057742 diff --git a/src/thumb_standard.c b/src/thumb_standard.c index 83bb7804..f3cd252a 100644 --- a/src/thumb_standard.c +++ b/src/thumb_standard.c @@ -434,7 +434,7 @@ static GdkPixbuf *thumb_loader_std_finish(ThumbLoaderStd *tl, GdkPixbuf *pixbuf, /* do not save the thumbnail if the source file has changed meanwhile - the thumbnail is most probably broken */ - if (stat_utf8(tl->fd->path, &st) && + if (stat_utf8(tl->fd->path, &st) && tl->source_mtime == st.st_mtime && tl->source_size == st.st_size) { @@ -792,9 +792,9 @@ static void thumb_loader_std_thumb_file_validate_done_cb(ThumbLoaderStd *tl, gpo GdkPixbuf *pixbuf; gboolean valid = FALSE; - /* get the original thumbnail pixbuf (unrotated, with original options) + /* get the original thumbnail pixbuf (unrotated, with original options) this is called from image_loader done callback, so tv->tl->il must exist*/ - pixbuf = image_loader_get_pixbuf(tv->tl->il); + pixbuf = image_loader_get_pixbuf(tv->tl->il); if (pixbuf) { const gchar *uri; @@ -959,9 +959,9 @@ static void thumb_std_maint_move_validate_cb(const gchar *path, gboolean valid, TMaintMove *tm = data; GdkPixbuf *pixbuf; - /* get the original thumbnail pixbuf (unrotated, with original options) + /* get the original thumbnail pixbuf (unrotated, with original options) this is called from image_loader done callback, so tm->tl->il must exist*/ - pixbuf = image_loader_get_pixbuf(tm->tl->il); + pixbuf = image_loader_get_pixbuf(tm->tl->il); if (pixbuf) { const gchar *uri;