Skip to content

Commit

Permalink
set fallback pixbuf in case of missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Aug 19, 2008
1 parent fe2d420 commit e8b3ce8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/thumb_standard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e8b3ce8

Please sign in to comment.