blob_info=image->blob;
switch (blob_info->type)
{
- case FileStream:
case BlobStream:
- case ZipStream:
return(MagickTrue);
- case UndefinedStream:
case StandardStream:
+ case FileStream:
+ case ZipStream:
+ {
+ int
+ status;
+
+ status=fseek(blob_info->file_info.file,0,SEEK_CUR);
+ return(status == -1 ? MagickFalse : MagickTrue);
+ }
+ case UndefinedStream:
case BZipStream:
case FifoStream:
case PipeStream:
if (strchr(type,'b') != (char *) NULL)
setmode(fileno(blob_info->file_info.file),_O_BINARY);
#endif
- blob_info->type=StandardStream;
+ blob_info->type=FileStream;
blob_info->exempt=MagickTrue;
return(SetStreamBuffering(image_info,image));
}
if (strchr(type,'b') != (char *) NULL)
setmode(fileno(blob_info->file_info.file),_O_BINARY);
#endif
- blob_info->type=StandardStream;
+ blob_info->type=FileStream;
blob_info->exempt=MagickTrue;
return(SetStreamBuffering(image_info,image));
}