summaryrefslogtreecommitdiff
path: root/src/jpeg.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-01 10:06:48 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-01 10:06:48 -0300
commit9783b0f015c4437f1c3c457caacaecadc06ae644 (patch)
tree84c3ba69d48f3840799e8096077ba03778254108 /src/jpeg.c
parenta242c0021263fc48fa57d1e4c1a874713745f590 (diff)
imported patch dicache-cleanup5
Diffstat (limited to 'src/jpeg.c')
-rw-r--r--src/jpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jpeg.c b/src/jpeg.c
index 8391227f..c495dbbe 100644
--- a/src/jpeg.c
+++ b/src/jpeg.c
@@ -103,7 +103,8 @@ METHODDEF(void) Jpeg_errorexit (j_common_ptr cinfo)
/*
* MIME handler for "image/jpeg" type
- * (Sets Jpeg_callback or a_Dicache_callback as the cache-client)
+ * Sets a_Dicache_callback as the cache-client,
+ * and Jpeg_callback as the image decoder.
*/
void *a_Jpeg_image(const char *Type, void *P, CA_Callback_t *Call,
void **Data)
@@ -117,7 +118,7 @@ void *a_Jpeg_image(const char *Type, void *P, CA_Callback_t *Call,
/* Add an extra reference to the Image (for dicache usage) */
a_Image_ref(web->Image);
- DicEntry = a_Dicache_get_entry(web->url);
+ DicEntry = a_Dicache_get_entry(web->url, DIC_Last);
if (!DicEntry) {
/* Let's create an entry for this image... */
DicEntry = a_Dicache_add_entry(web->url);