set fallback pixbuf in case of missing file
authorVladimir Nadvornik <nadvornik@suse.cz>
Tue, 19 Aug 2008 21:01:29 +0000 (21:01 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 19 Aug 2008 21:01:29 +0000 (21:01 +0000)
src/thumb_standard.c

index f9d1fb5..7258bc7 100644 (file)
@@ -657,9 +657,13 @@ gint thumb_loader_std_start(ThumbLoaderStd *tl, FileData *fd)
 
        thumb_loader_std_reset(tl);
 
-       if (!stat_utf8(fd->path, &st)) return FALSE;
 
        tl->fd = file_data_ref(fd);
+       if (!stat_utf8(fd->path, &st))
+               {
+               thumb_loader_std_set_fallback(tl);
+               return FALSE;
+               }
        tl->source_mtime = st.st_mtime;
        tl->source_size = st.st_size;
        tl->source_mode = st.st_mode;