diff src/search.c @ 1011:616b14da08c2

do not access image_loader directly
author nadvornik
date Fri, 29 Aug 2008 12:35:13 +0000
parents c74c4e87a682
children fe82830ab8fd
line wrap: on
line diff
--- a/src/search.c	Fri Aug 29 09:59:20 2008 +0000
+++ b/src/search.c	Fri Aug 29 12:35:13 2008 +0000
@@ -1518,13 +1518,13 @@
 			}
 
 		if (options->thumbnails.enable_caching &&
-		    sd->img_loader && sd->img_loader->fd)
+		    sd->img_loader && image_loader_get_fd(sd->img_loader))
 			{
 			gchar *base;
 			const gchar *path;
 			mode_t mode = 0755;
 
-			path = sd->img_loader->fd->path;
+			path = image_loader_get_fd(sd->img_loader)->path;
 			base = cache_get_location(CACHE_TYPE_SIM, path, FALSE, &mode);
 			if (cache_ensure_dir_exists(base, mode))
 				{
@@ -1532,7 +1532,7 @@
 				cd->path = cache_get_location(CACHE_TYPE_SIM, path, TRUE, NULL);
 				if (cache_sim_data_save(cd))
 					{
-					filetime_set(cd->path, filetime(sd->img_loader->fd->path));
+					filetime_set(cd->path, filetime(image_loader_get_fd(sd->img_loader)->path));
 					}
 				}
 			g_free(base);