diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2008-12-27 14:39:04 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2008-12-27 14:39:04 -0300 |
commit | 1dc3775146a70648b8806673333fc64a67ffed51 (patch) | |
tree | 7da1b29b30492589f9c0ffd5396b6c4476cf99ef /src/gif.c | |
parent | c3aeca579c61983bc96d0177806fc48c28c8b825 (diff) |
[mq]: dicache-cleanup1
Diffstat (limited to 'src/gif.c')
-rw-r--r-- | src/gif.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -176,16 +176,16 @@ void *a_Gif_image(const char *Type, void *Ptr, CA_Callback_t *Call, if (!DicEntry) { /* Let's create an entry for this image... */ DicEntry = a_Dicache_add_entry(web->url); - - /* ... and let the decoder feed it! */ - *Data = Gif_new(web->Image, DicEntry->url, DicEntry->version); - *Call = (CA_Callback_t) Gif_callback; + DicEntry->DecoderData = + Gif_new(web->Image, DicEntry->url, DicEntry->version); } else { - /* Let's feed our client from the dicache */ + /* Repeated image */ a_Dicache_ref(DicEntry->url, DicEntry->version); - *Data = web->Image; - *Call = (CA_Callback_t) a_Dicache_callback; } + DicEntry->Decoder = Gif_callback; + *Data = DicEntry->DecoderData; + *Call = (CA_Callback_t) a_Dicache_callback; + return (web->Image->dw); } |