rewind images after write

after sinkdisc or sinkmemory, we need to rewind the image we wrote to so
that subsequent reads get the written image and don't regenerate it
This commit is contained in:
John Cupitt 2015-04-18 17:46:29 +01:00
parent da1611e070
commit 04feec359f
1 changed files with 6 additions and 1 deletions

View File

@ -741,7 +741,12 @@ vips_image_generate( VipsImage *image,
*/
if( res )
return( -1 );
/* We've written to image ... rewind it ready for reading.
*/
if( vips_image_pio_input( image ) )
return( -1 );
break;
default: