if( state == gif_error) ic->loop_count = 0;
process_buffered_gif_input_data(gif_struct* gs){    gstate state;	il_container *ic = gs->ic;    /* Force any data we've buffered up to be processed. */    il_gif_write(ic, (uint8 *) "", 0);    /* The stream has already finished delivering data and the stream       completion routine has been called sometime in the past. Now that       we're actually done handling all of that data, call the stream       completion routine again, but this time for real. */    state = gs->state;    if (gs->destroy_pending &&        ((state == gif_done) || (state == gif_error) || (state == gif_oom))) {        il_gif_abort(ic);        il_image_complete(ic);    }}