From: oes Date: Wed, 18 Jul 2001 12:29:34 +0000 (+0000) Subject: - Made gif_deanimate_response respect X-Git-Tag: v_2_9_9~239 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=2ed7b3cf5bffa4ca40fcce5158f802eb19ab1022;p=privoxy.git - Made gif_deanimate_response respect csp->action->string[ACTION_STRING_DEANIMATE] - Logging cosmetics --- diff --git a/filters.c b/filters.c index 53748f10..cc06229d 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.20 2001/07/01 17:01:04 oes Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.21 2001/07/13 13:59:53 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -38,6 +38,14 @@ const char filters_rcs[] = "$Id: filters.c,v 1.20 2001/07/01 17:01:04 oes Exp $" * * Revisions : * $Log: filters.c,v $ + * Revision 1.21 2001/07/13 13:59:53 oes + * - Introduced gif_deanimate_response which shares the + * generic content modification interface of pcrs_filter_response + * and acts as a wrapper to deanimate.c:gif_deanimate() + * - Renamed re_process_buffer to pcrs_filter_response + * - pcrs_filter_response now returns NULL on failiure + * - Removed all #ifdef PCRS + * * Revision 1.20 2001/07/01 17:01:04 oes * Added comments and missing return statement in is_untrusted_url() * @@ -955,16 +963,16 @@ char *gif_deanimate_response(struct client_state *csp) if ( (NULL == (in = (struct binbuffer *)zalloc(sizeof *in ))) || (NULL == (out = (struct binbuffer *)zalloc(sizeof *out))) ) { - log_error(LOG_LEVEL_DEANIMATE, "failed! (No Mem!)"); + log_error(LOG_LEVEL_DEANIMATE, "failed! (no mem)"); return NULL; } in->buffer = csp->iob->cur; in->size = size; - if (gif_deanimate(in, out)) + if (gif_deanimate(in, out, strncmp("last", csp->action->string[ACTION_STRING_DEANIMATE], 4))) { - log_error(LOG_LEVEL_DEANIMATE, "failed! (size %d)", size); + log_error(LOG_LEVEL_DEANIMATE, "failed! (gif parsing)"); free(in); buf_free(out); return(NULL);