improve seq fix

simpler logic, more reliable unset
This commit is contained in:
John Cupitt 2017-12-31 13:51:29 +00:00
parent 9febc3ac3e
commit faeb68e993

View File

@ -950,16 +950,14 @@ vips_foreign_load_build( VipsObject *object )
vips_stop_one,
NULL, load ) )
return( -1 );
/* We have delayed load. This must mean that the loader will
* load to a memory buffer or temp file, and will therefore
* support random access.
*
* Make sure there's no seq flag set on the output image.
*/
(void) vips_image_remove( load->out, VIPS_META_SEQUENTIAL );
}
/* If random access has been requested, make sure that we don't have a
* SEQ tag left from a sequential loader.
*/
if( load->access == VIPS_ACCESS_RANDOM )
(void) vips_image_remove( load->out, VIPS_META_SEQUENTIAL );
return( 0 );
}