}
case CustomStream:
{
- count=image->blob->custom_stream->reader(q,length,
- image->blob->custom_stream->data);
+ if (image->blob->custom_stream->reader != (CustomStreamHandler) NULL)
+ count=image->blob->custom_stream->reader(q,length,
+ image->blob->custom_stream->data);
break;
}
}
}
case CustomStream:
{
- count=image->blob->custom_stream->writer((const unsigned char *) data,
- length,image->blob->custom_stream->data);
+ if (image->blob->custom_stream->writer != (CustomStreamHandler) NULL)
+ count=image->blob->custom_stream->writer((const unsigned char *) data,
+ length,image->blob->custom_stream->data);
break;
}
}